Post

2 followers Follow
0
Avatar

How to assign a person to a user field through the api.

If one has a field of this type in clarizen:

 

Field Type: Reference To Object
Referenced Entity: User

 

How can one assign a value to that through the api?

for all the other fields I have just passed a string of some value.

 

Having tried that with the above field I am getting the below message:

{'errorCode': 'EntityNotFound',
'message': "Entity '168205121' of type 'User' was not found",
'referenceId': '1uve0dLXgNOILNykrZKEXU'}

 

I have tried to pass in the:

username of the user

userid of the user

and the email of the user.

 

All result in the above error.

Jared Thompson Answered

Official comment

Avatar

Hi Jared,

Values for reference fields should be in this structure: "/[EntityType]/[ExternalId]". For example:

"/project/fdb054f2-8f0c-11e6-80db-0c54a5513336"

 

I hope this helps,

Elad

Elad Franklin
Comment actions Permalink

Please sign in to leave a comment.

2 comments