cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ptancre
Occasional contributor

How to obtain unique ID's

Jump to solution

Hi,

How can you get the following : 

<product>
<uniqueId>???</uniqueId>
</product>

and 

<licenseModel>

<uniqueId>???</uniqueId>

</licenseModel>

From the producer portal or else?

Thanks,

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator jberthold Moderator
Moderator

Re: How to obtain unique ID's

Jump to solution

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,

View solution in original post

0 Kudos
11 Replies
Highlighted
Moderator jberthold Moderator
Moderator

Re: How to obtain unique ID's

Jump to solution

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,

0 Kudos
Highlighted
ptancre
Occasional contributor

Re: How to obtain unique ID's

Jump to solution
thank you for your reply, I am happy to add name but this part :
<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...
0 Kudos
Highlighted
Moderator jberthold Moderator
Moderator

Re: How to obtain unique ID's

Jump to solution

Hi @ptancre ,

Which web service are you using?

Thanks,

0 Kudos
Highlighted
ptancre
Occasional contributor

Re: How to obtain unique ID's

Jump to solution
/services/v4/EntitlementOrderService
0 Kudos
Highlighted
Moderator jberthold Moderator
Moderator

Re: How to obtain unique ID's

Jump to solution

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,

View solution in original post

0 Kudos
Highlighted
ptancre
Occasional contributor

Re: How to obtain unique ID's

Jump to solution
thank you for your reply, I use v4/EntitlementOrderService/createSimpleEntitlement.
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 ?
0 Kudos
Highlighted
ptancre
Occasional contributor

Re: How to obtain unique ID's

Jump to solution
So your solution works for the licenseModel and the productId, I am assuming I need to remove the 'HID-' in front?
0 Kudos
Highlighted
Moderator jberthold Moderator
Moderator

Re: How to obtain unique ID's

Jump to solution

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,

0 Kudos
Highlighted
Moderator jberthold Moderator
Moderator

Re: How to obtain unique ID's

Jump to solution

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,

0 Kudos