cancel
Showing results for 
Search instead for 
Did you mean: 

REST API 8.0 Determine / Understand GUID

0 Kudos

Hello,

I have an attestation application I am creating using the SAP 8.0 REST API for IDM. I'd like to look up the associated privilege I am attesting to, however I do not get the MS Key or any data coming back from the response to uniquely identify the privilege.I intended to use the LINK_ID from the one of the assignments, however I don't know or understand what the GUID should be.

https://server.domain.com:50001/idmrestapi/v2/service/ER_MX_ASSIGNMENT(LINK_ID=32054,TASK_GUID=guid'ffffffff-ffff-ffff-ffff-ffffffffffff')

Using the TASK_GUID=guid'ffffffff-ffff-ffff-ffff-ffffffffffff' just returns the message:

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>Bad Request</code>

<message xml:lang="en-US">

Form FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF does not contain attribute MX_ASSIGNMENT.

</message>

</error>

How do I determine what the TASK_GUID is when querying the REST API for assignments and other data?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

After poking around in Eclipse I discovered that I needed to create a form using MX_PERSON that has the attribute MX_ASSIGNMENT set as List. From there I can use the GUID of the form to obtain the MX_ASSIGNMENT data.

I don't understand why this is the design, but am able to successfully obtain the data that I require.

Answers (1)

Answers (1)

normann
Advisor
Advisor

Hi Trevor,

this is the guid of the attestation process you initiated. You can get the GUID from Eclipse using the option "Get GUID" (right click on attestation process -> Get Guid) which you might need to enable first (Window -> Preferences -> SAP I... -> Global ... -> Enable "Get GUID"...).

Regards

Norman

0 Kudos

Thanks for taking the time to answer Norman.

Unfortunately this is not what I was looking for. I've found the solution and will post.