Oct 19, 2022
09:36 AM
Hi Sir/Madam, I tried to update my existing Line Item which already have existing Activation Id as below:- using (var eos = new EntitlementOrderClient()) { eos.Open(ConfigurationManager.AppSettings["FNOODUN"], ConfigurationManager.AppSettings["FNOODpassword"], ConfigurationManager.AppSettings["FNOCBaseURL"]); createSimpleEntitlementDataType[] seArray = new createSimpleEntitlementDataType[1]; addEntitlementLineItemDataType[] lineDT = new addEntitlementLineItemDataType[1]; var lineItems = new createEntitlementLineItemDataType[1]; var keyss = dataAccess.GetKeysQuery().Where(a => a.Id.Equals(key.Id)).FirstOrDefault(); lineItems[0] = new createEntitlementLineItemDataType { activationId = new idType { autoGenerate = false, id = key.SerialNumber }, partNumber = new Flexnet.Entitlement.partNumberIdentifierType { primaryKeys = new Flexnet.Entitlement.partNumberPKType { partId = LicDet[0].ProductCode, }, }, licenseModel = new Flexnet.Entitlement.licenseModelIdentifierType { primaryKeys = new Flexnet.Entitlement.licenseModelPKType { name = LicDet[0].Description, } }, lineItemAttributes = new[] { new Flexnet.Entitlement.attributeDescriptorType() { attributeName = "EndUserID", stringValue = key.Site.SiteNumber.ToString() }, new Flexnet.Entitlement.attributeDescriptorType() { attributeName = "EndUserName", stringValue = key.Site.Name.ToString() }, new Flexnet.Entitlement.attributeDescriptorType() { attributeName = "OrderLineNo", stringValue = "OO DAX "+key.OrderNumber, }, new Flexnet.Entitlement.attributeDescriptorType() { attributeName = "SerialNumber", stringValue = key.SerialNumber + "("+ key.OrderNumber +")" }, new Flexnet.Entitlement.attributeDescriptorType() { attributeName = "SiteID", stringValue = key.Site.SiteNumber.ToString() }, }, orderId = LicDet[0].ProductCode, orderLineNumber = "OO DAX " + key.OrderNumber, //get from SAP Order # numberOfCopies = LicDet[0].Quantity.ToString(), startDateOption = StartDateOptionType.DEFINE_ACTDATE_AT_FIRST_ACTIVATION, startDateSpecified = false, isPermanent = false, isPermanentSpecified = false, expirationDateSpecified = true, expirationDate = DateTime.Parse(model.TimeLimitedEndDate.Value.ToString("yyyy-MM-dd")) }; lineDT[0] = new addEntitlementLineItemDataType { entitlementIdentifier = new entitlementIdentifierType { primaryKeys = new entitlementPKType { entitlementId = "SOC-" + key.Site.SiteNumber + "-" + key.OrderNumber, } }, lineItems = lineItems, autoDeploy = true, autoDeploySpecified = true }; addOrReplaceEntitlementLineItemResponseType csertAddLnItem2ExistingEntitlement = eos.CreateEntitlementLineItem(lineDT); The error showing for csertAddLnItem2ExistingEntitlement.failedData[0].reason "7060:Duplicate Activation ID xxxx-GTFX-1604-xxxx. [Incident# 5601-924129799]" It was weird, the function saying addOrReplaceEntitlementLineItemResponseType !??? May I know where can I get the sample of C# code for Revenera related to entilement & entitlement line items? Please advise. Regards, Micheale
... View more
Sep 20, 2022
02:47 AM
Thanks. I have just submit the new case for support. Regards, Micheale
... View more
Sep 20, 2022
02:36 AM
Hi Sir, I tried but no luck. All the Custom Attribute for Entitlement & Line Item return no value. Thanks. How can I raise support case? Please advise. Thanks. Regards, Micheale
... View more
Sep 20, 2022
02:20 AM
Hi All, Good days. I'm developing Web Intelligence Reports from Data Access ALM Entitlement (Universe outline). I'm trying to get the DistCompId, Order Status, ponumber, Line Item SerialNumber & SubscriptionValue into the report but I can't find any field that related to this:- https://ibb.co/x3dry9H https://ibb.co/MG5X7Wz -OR- Any person that I can contact for support via teams meeting? Please advise. Regards, Micheale
... View more
Jun 23, 2022
11:16 AM
Hi All, Good days. I want to achieve Configure Product > Start Date : [ Use First Activation Date ] I had tried:- startDateOption = StartDateOptionType.DEFINE_AT_FIRST_ACTIVATION, startDateSpecified = false, isPermanent = true, isPermanentSpecified = true, expirationDateSpecified = false -OR- startDateOption = StartDateOptionType.DEFINE_ACTDATE_AT_FIRST_ACTIVATION, startDateSpecified = false, isPermanent = true, isPermanentSpecified = true, expirationDateSpecified = false But both doesn't return the result I wanted. Both solution show Start Date: [ Specify Value Now] [Show Current Date] Expiration: Permanent Please advise. Thanks. Regards, Micheale
... View more
Jun 19, 2022
01:42 AM
Hi All, Good days. I tried to change state of line item to draft but I'm getting error as below using POSTMAN/C# Code to test:- https://ibb.co/jZ3N2J2 POST https://xxxxxxxxx.flexnetoperations.com/flexnet/services/v5/EntitlementOrderService?wsdl Authorization Type Basic Auth UserName: xxxxx Password: xxxxxx BODY: < soapenv:Envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn = "urn:v5.webservices.operations.flexnet.com"> < soapenv:Header/ > < soapenv:Body > < urn:setLineItemStateRequest > < urn:lineItem > < urn:lineItemIdentifier > < urn:uniqueId > HID-141464 </ urn:uniqueId > < urn:primaryKeys > < urn:activationId > ENVI-RLVQ-D2H7-NQ86 </ urn:activationId > </ urn:primaryKeys > </ urn:lineItemIdentifier > < urn:stateToSet > DRAFT </ urn:stateToSet > < urn:includeChildItems > false </ urn:includeChildItems > </ urn:lineItem > </ urn:setLineItemStateRequest > </ soapenv:Body > </ soapenv:Envelope > RESULT: <? xml version = "1.0" encoding = "UTF-8"?> < soapenv:Envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"> < soapenv:Body > < setLineItemStateResponse xmlns = "urn:v5.webservices.operations.flexnet.com"> < statusInfo > < status > FAILURE </ status > < reason > All input data in the request failed. Please check the specific reasons in returned data. </ reason > </ statusInfo > < failedData > < failedLineItem > < lineItem > < lineItemIdentifier > < uniqueId > HID-141464 </ uniqueId > < primaryKeys > < activationId > ENVI-RLVQ-D2H7-NQ86 </ activationId > </ primaryKeys > </ lineItemIdentifier > < stateToSet > DRAFT </ stateToSet > < includeChildItems > false </ includeChildItems > </ lineItem > < reason > 9000:No data records were found. [Incident# 1909-643576786] </ reason > </ failedLineItem > </ failedData > </ setLineItemStateResponse > </ soapenv:Body > </ soapenv:Envelope > C# Code using (var eos = new EntitlementOrderClient()) { eos.Open(ConfigurationManager.AppSettings["FNOODlogin"], ConfigurationManager.AppSettings["FNOODpassword"], ConfigurationManager.AppSettings["FNOCBaseURL"]); try { var reqtype = new searchActivatableItemRequestType() { activatableItemSearchCriteria = new searchActivatableItemDataType() { activationId = new Flexnet.Entitlement.SimpleQueryType() { value = serialNumber, searchType = Flexnet.Entitlement.simpleSearchType.EQUALS }, partNumber = new Flexnet.Entitlement.SimpleQueryType() { value = LicenseProductCode, searchType = Flexnet.Entitlement.simpleSearchType.EQUALS }, } }; reqtype.batchSize = "50"; reqtype.pageNumber = "1"; searchActivatableItemResponseType SearchResponse3 = eos.SearchActivatableItemRequest(reqtype); if (SearchResponse3.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS) { //SUCCESS setLineItemStateResponseType SearchResponse2 = new setLineItemStateResponseType(); lineItemStateDataType[] request = new lineItemStateDataType[] { new lineItemStateDataType() { lineItemIdentifier = new entitlementLineItemIdentifierType { primaryKeys = new entitlementLineItemPKType { activationId = serialNumber, }, uniqueId = SearchResponse3.activatableItem[0].activatableItemData.partNumber.uniqueId }, includeChildItemsSpecified = false, includeChildItems = false, stateToSet = Status, } }; SearchResponse2 = eos.SetLineItemState(request); if (SearchResponse2.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS) { //SUCCESS : : I even try using Google Wizdler, also getting same error. https://docs.revenera.com/fno2020r2/soapapi/Default_frame.htm?Default.htm I even try replaced the Unique ID with Entitlement ID, getting same error too. Please advise. Regards, Micheale
... View more
Jun 17, 2022
09:35 AM
Awesome Jim. Happy Friday. 😇 I changed my Authorization Type : Bearer Token to Basic Auth. Now, I will figure out on my C# code to make it work, will share the solution once I did it. Thanks. Regards, Micheale
... View more
Jun 17, 2022
07:55 AM
Hi Jim, Many thanks for your respond. Would you able to share your Headers for POSTMAN screenshot? I am trying out using POSTMAN, but still no luck. My POSTMAN Body Code: < soapenv:Envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn = "urn:v5.webservices.operations.flexnet.com">
< soapenv:Header/ >
< soapenv:Body >
< urn:searchEntitlementLineItemPropertiesRequest >
< urn:queryParams >
< urn:activationId >
< urn:value > SVQ1-E7EP-RCPQ-GUCS </ urn:value >
< urn:searchType > EQUALS </ urn:searchType >
</ urn:activationId >
</ urn:queryParams >
< urn:entitlementLineItemResponseConfig >
< urn:activationId > TRUE </ urn:activationId >
< urn:state > TRUE </ urn:state >
< urn:entitlementState > TRUE </ urn:entitlementState >
</ urn:entitlementLineItemResponseConfig >
< urn:batchSize > 1 </ urn:batchSize >
< urn:pageNumber > 1 </ urn:pageNumber >
</ urn:searchEntitlementLineItemPropertiesRequest >
</ soapenv:Body >
</ soapenv:Envelope >
My POSTMAN Header: https://ibb.co/3mL9Nc5
MY POSTMAN Authorization: Bearer : Basic xxxleGVyYWFwaUXxxmV2XYXXb206RmxleFNXXXxx Not sure what is missing, I am getting Responses failure
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><searchEntitlementLineItemPropertiesResponse xmlns="urn:v5.webservices.operations.flexnet.com"><statusInfo><status>FAILURE</status></statusInfo></searchEntitlementLineItemPropertiesResponse></soapenv:Body></soapenv:Envelope> Last try, If not I will log support ticket on Monday.
Many thanks. Regards, Micheale
... View more
Jun 17, 2022
12:20 AM
Hi Jim, Thanks for your great help. I managed to run my code as below, but I getting the STATE as DRAFT instead INACTIVE:-
searchActivatableItemDataType searchtype = new searchActivatableItemDataType(); Flexnet.Entitlement.SimpleQueryType qtype = new Flexnet.Entitlement.SimpleQueryType(); qtype.searchType = Flexnet.Entitlement.simpleSearchType.EQUALS; qtype.value = serialNumber; searchtype.activationId = qtype;
entitlementLineItemResponseConfigRequestType respConfig = new entitlementLineItemResponseConfigRequestType(); respConfig.activationId = true; respConfig.state = true;
searchEntitlementLineItemPropertiesRequestType request = new searchEntitlementLineItemPropertiesRequestType(); request.batchSize = "1"; request.pageNumber = "1"; request.entitlementLineItemResponseConfig = respConfig; request.queryParams = searchtype;
searchEntitlementLineItemPropertiesResponseType SearchResponse2 = new searchEntitlementLineItemPropertiesResponseType(); using (var eos = new EntitlementOrderClient()) { eos.Open(ConfigurationManager.AppSettings["FNOODlogin"], ConfigurationManager.AppSettings["FNOODpassword"], ConfigurationManager.AppSettings["FNOCBaseURL"]); try { SearchResponse2 = eos.GetEntitlementLineItemPropertiesQuery(request); if (SearchResponse2.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS) { : : ****************************************************************************** The status returned => SUCCESS The state returned =>DRAFT but my actual line item state is "Inactive". I tried edit my lineitem state to Obselete. And the code above still returned state as DRAFT. https://ibb.co/Q6sCh4k Please advise. Thanks.
Regards, Micheale
... View more
Jun 16, 2022
07:12 PM
Hi All,
Good days! I have a skeleton code as below using sandbox account:-
searchActivatableItemDataType searchtype = new searchActivatableItemDataType(); Flexnet.Entitlement.SimpleQueryType qtype = new Flexnet.Entitlement.SimpleQueryType(); qtype.searchType = Flexnet.Entitlement.simpleSearchType.EQUALS; qtype.value = "YH6D-SJIN-5GSH-8RPR"; searchtype.activationId = qtype;
searchEntitlementLineItemPropertiesRequestType request = new searchEntitlementLineItemPropertiesRequestType(); request.batchSize = "1"; request.pageNumber = "1"; request.queryParams = searchtype; searchEntitlementLineItemPropertiesResponseType SearchResponse2 = new searchEntitlementLineItemPropertiesResponseType(); using (var eos = new EntitlementOrderClient()) { eos.Open(ConfigurationManager.AppSettings["FNOODlogin"], ConfigurationManager.AppSettings["FNOODpassword"], ConfigurationManager.AppSettings["FNOCBaseURL"]);
try { SearchResponse2 = eos.GetEntitlementLineItemPropertiesQuery(request); if (SearchResponse2.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS) { : : :
***********************************************************************************
/// <summary> /// Returns entitlements that match the query parameters in the request. /// </summary> /// <param name="request"> /// The request that contains query parameters. /// </param> /// <returns> /// The entitlements. /// </returns> public virtual searchEntitlementLineItemPropertiesResponseType GetEntitlementLineItemPropertiesQuery(searchEntitlementLineItemPropertiesRequestType request) { CheckOpenAndNotDisposed(); return Client.getEntitlementLineItemPropertiesQuery(request); }
Above code returned status => "FAILURE" with reason => 9999:java.lang.NullPointerException
Refer to sandbox Revenera Portal Line Item screenshot >> https://ibb.co/c6c4XRV
I need a guidance or any sample code for this? Basically I am trying to retrieve line item state status using ActivationID. Please advise. Regards, Micheale
... View more
Latest posts by michealeseecc
Subject | Views | Posted |
---|---|---|
166 | Oct 19, 2022 09:36 AM | |
393 | Sep 20, 2022 02:47 AM | |
397 | Sep 20, 2022 02:36 AM | |
407 | Sep 20, 2022 02:20 AM | |
226 | Jun 23, 2022 11:16 AM | |
242 | Jun 19, 2022 01:42 AM | |
529 | Jun 17, 2022 09:35 AM | |
534 | Jun 17, 2022 07:55 AM | |
548 | Jun 17, 2022 12:20 AM | |
562 | Jun 16, 2022 07:12 PM |
Activity Feed
- Posted Overwrite Line Item Information especially permanent / Expired Date C# on FlexNet Operations Forum. Oct 19, 2022 09:36 AM
- Posted Re: Web Intelligence Report - Data Access ALM Entitlement (Universe outline) on FlexNet Operations Forum. Sep 20, 2022 02:47 AM
- Posted Re: Web Intelligence Report - Data Access ALM Entitlement (Universe outline) on FlexNet Operations Forum. Sep 20, 2022 02:36 AM
- Posted Web Intelligence Report - Data Access ALM Entitlement (Universe outline) on FlexNet Operations Forum. Sep 20, 2022 02:20 AM
- Posted Configure Product Start Date Use 1st Activation Date StartDateOptionType C# on FlexNet Operations Forum. Jun 23, 2022 11:16 AM
- Kudoed Re: SetLineItemState From DEPLOYED to DRAFT - All input data in the request failed. Please check the specific reasons in returned data. for jberthold. Jun 19, 2022 07:50 PM
- Posted SetLineItemState From DEPLOYED to DRAFT - All input data in the request failed. Please check the specific reasons in returned data. on FlexNet Operations Forum. Jun 19, 2022 01:42 AM
- Posted Re: GetEntitlementLineItemPropertiesQuery - "9999:java.lang.NullPointerException on FlexNet Operations Forum. Jun 17, 2022 09:35 AM
- Kudoed Re: GetEntitlementLineItemPropertiesQuery - "9999:java.lang.NullPointerException for jberthold. Jun 17, 2022 09:25 AM
- Posted Re: GetEntitlementLineItemPropertiesQuery - "9999:java.lang.NullPointerException on FlexNet Operations Forum. Jun 17, 2022 07:55 AM
- Posted Re: GetEntitlementLineItemPropertiesQuery - "9999:java.lang.NullPointerException on FlexNet Operations Forum. Jun 17, 2022 12:20 AM
- Posted GetEntitlementLineItemPropertiesQuery - "9999:java.lang.NullPointerException on FlexNet Operations Forum. Jun 16, 2022 07:12 PM