The code you're looking for can be extracted from a URL that is generated using GetObjectURL(GetObjectByID('User', 'UserObject')). Example:
GetObjectURL(GetObjectByID('User', 'rolandas.demo')) in my demo environment returns this: https://app2.clarizen.com/Clarizen/ObjectDetails/Index/9.153236353.26464129/
Please let me know if this helps.
URL to personal calendar
I've worked out I can pass around a direct URL to a user's personal calendar if I append a special id for that user to the end of https://app2.clarizen.com/Clarizen/Pages/Admin/PersonalCalendar.aspx?id=
I can get a user's special id by inspecting the HTML when the user's calendar link is visible in the web UI (see image at bottom).
But how do I get that special id programmatically? Is there a way to populate a custom field with it? Or access it through a function?
Please sign in to leave a comment.
To anyone monitoring: following Roland's lead (thanks Roland!) I created a custom field against the User type containing the following formula to extract the special code (then I can then access the custom field via the API): RegexReplace(RegexReplace(GetObjectURL(CurrentObject()), '/$', ''), '.*/', '')