- Revenera Community
- :
- FlexNet Operations
- :
- FlexNet Operations Forum
- :
- Re: How to obtain unique ID's
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
How can you get the following :
<product>
<uniqueId>???</uniqueId>
</product>
and
<licenseModel>
<uniqueId>???</uniqueId>
</licenseModel>
From the producer portal or else?
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @ptancre ,
Can you be more specific (which web service(s) in the EntitlementOrderService wsdl)?
For example, if you are using createSimpleEntitlement, you can specify either the Product ID or the Product Name/Version:
<urn:product>
<!--Optional:-->
<urn:uniqueId>?</urn:uniqueId>
<!--Optional:-->
<urn:primaryKeys>
<urn:name>?</urn:name>
<urn:version>?</urn:version>
</urn:primaryKeys>
Same with the License Model, you can reference it by id or name:
<urn:licenseModel>
<!--Optional:-->
<urn:uniqueId>?</urn:uniqueId>
<!--Optional:-->
<urn:primaryKeys>
<urn:name>?</urn:name>
</urn:primaryKeys>
</urn:licenseModel>
You can obtain the Product ID using the getProductsQuery and the License Model ID using getLicenseModelIdentifiers but first let's see if you can get what you need by using the names instead of having to make additional calls to retrieve the IDs.
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @ptancre ,
May I ask why you need these IDs? If you are using web services can you use the product / license model names?
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
<entitledProduct>
<!-- Optional -->
<product>
<uniqueId>[string?]</uniqueId>
</product>
<quantity>[integer]</quantity>
</entitledProduct>
</entitledProducts>
requires the id and I trying to add the name string does not work...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @ptancre ,
Can you be more specific (which web service(s) in the EntitlementOrderService wsdl)?
For example, if you are using createSimpleEntitlement, you can specify either the Product ID or the Product Name/Version:
<urn:product>
<!--Optional:-->
<urn:uniqueId>?</urn:uniqueId>
<!--Optional:-->
<urn:primaryKeys>
<urn:name>?</urn:name>
<urn:version>?</urn:version>
</urn:primaryKeys>
Same with the License Model, you can reference it by id or name:
<urn:licenseModel>
<!--Optional:-->
<urn:uniqueId>?</urn:uniqueId>
<!--Optional:-->
<urn:primaryKeys>
<urn:name>?</urn:name>
</urn:primaryKeys>
</urn:licenseModel>
You can obtain the Product ID using the getProductsQuery and the License Model ID using getLicenseModelIdentifiers but first let's see if you can get what you need by using the names instead of having to make additional calls to retrieve the IDs.
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
So, correct me if I'm wrong, but I need to fill up the product/partNumber and licenseModel under lineItems and then the entitledProducts to define qty ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @ptancre ,
If you choose to use the ProductID to specify the product as opposed to the Product Name and version then you do not need to remove the "HID" identifier in the Product ID. I have attached an example where the Product ID is specified.
Best regards,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
HI @ptancre ,
Note that the use of Part number in the web service will reduce the number of fields you need to supply as it ties a Product Version with a License model. I have attached an example.
Best regards,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Now this only works if I specify an 'id' for the entitlement.
What I would like is, to create a new entitlement and new line items. I use the createSimpleEntitlement, am I correct to assume this webservice should do both or I would need to have a 2 steps process?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @ptancre ,
You should not have to provide an entitlement id. If you would like FNO to create a unique entitlement id then set autoGenerate to true:
<urn:entitlementId>
<urn:autoGenerate>true</urn:autoGenerate>
</urn:entitlementId>
You can create a new entitlement with multiple line items in one pass. Simply repeat the information between the lineItems tags for each entitlement line. I have attached an example with an auto-generated entitlement id and two line items.
Best regards,