Hi all. I'm almost there, but I need assistance on this last bit. I'm running the following on the workflow to putt the details in for a certain user: _/api/web/siteusers$filter=Title%20%27[%Variable:Employee Name%]%27.
I then call the http service using this and I get the following results:
{"odata.metadata":"https:\/\/instarnet.instarmac.co.uk\/hr\/_api\/$metadata#SP.ApiData.Users1","value":[{"odata.type":"SP.User","odata.id":"https:\/\/instarnet.instarmac.co.uk\/hr\/_api\/Web\/GetUserById(138)","odata.editLink":"Web\/GetUserById(138)","Id":138,"IsHiddenInUI":false,"LoginName":"i:0#.w|trinity\\danielh","Title":"Daniel Harris","PrincipalType":1,"Email":"
[email protected]","IsShareByEmailGuestUser":false,"IsSiteAdmin":false,"UserId":{"NameId":"s-1-5-21-1409082233-1644491937-725345543-4898","NameIdIssuer":"urn:office:idp:activedirectory"}},{"odata.type":"SP.User","odata.id":"https:\/\/instarnet.instarmac.co.uk\/hr\/_api\/Web\/GetUserById(3)","odata.editLink":"Web\/GetUserById(3)","Id":3,"IsHiddenInUI":false,"LoginName":"TRINITY\\danielh","Title":"Daniel Harris","PrincipalType":1,"Email":"
[email protected]","IsShareByEmailGuestUser":false,"IsSiteAdmin":false,"UserId":{"NameId":"S-1-5-21-1409082233-1644491937-725345543-4898","NameIdIssuer":"urn:office:idp:activedirectory"}}]}
How Can I extract the user ID only? (138) I will then use this workflow to add an explicit permission for the user against an item.
Thanks,
Dan