People Attribute

Hello,

In a form, I am using a custom person attribute.  In an attached workflow, I'm using a web service to change the title to include that custom attribute.  I was wondering if there was any way to pull out the username of that custom person attribute instead of using the full name?

Thanks in advance!

Asked by Danee Gunka Schwartz on Tue 8/2/22 9:18 AM
Sign In to leave feedback or contribute an answer

Answers (3)

This answer has been marked as the accepted answer
Danee Gunka Schwartz Wed 4/12/23 4:03 PM

It is the Project Evaluation Request Workflow in https://bgsu.teamdynamix.com/SBTDNext/Home/Desktop/Default.aspx app #207.

Thanks!

No feedback
You have your URL for the GET call like https://bgsu.teamdynamix.com/SBTDWebApi/api/people/{uid} but to reference a parameter you have to encase it in double mustache brackets like so: {{uid}}

Change that URL to look like: https://bgsu.teamdynamix.com/SBTDWebApi/api/people/{{uid}}

and it will at least be referencing the parameter correctly.
- Mark Sayers Wed 4/12/23 4:35 PM
Sorry I must have been testing and forgot to set it back to the double bracket. With the double brackets I get the 405 error message. - Danee Gunka Schwartz Thu 4/13/23 10:06 AM
It looks like the source value for your parameter is currently listed like this: TicketInfoRespBody.Attributes[?(@.ID==127582].Value

See how there is not a closing parenthesis inside the attribute array section. It *should* look like this: TicketInfoRespBody.Attributes[?(@.ID==127582)].Value

With the closing parenthesis just after the attribute ID. Try changing that and running again.
- Mark Sayers Thu 4/13/23 11:49 AM
Oh wow! I knew I was missing something silly!!! Thank you so much!!!! - Danee Gunka Schwartz Thu 4/13/23 1:20 PM
You're very welcome! - Mark Sayers Thu 4/13/23 1:21 PM

Danee Gunka Schwartz Thu 4/13/23 10:06 AM Last edited Thu 4/13/23 10:06 AM

Sorry I must have been testing and forgot to set it back to the double bracket.  With the double brackets I get the 405 error message.

No feedback

Mark Sayers Tue 8/2/22 9:32 AM

Hello Danee,

Unfortunately no, the web service method will pull just the name of the selection on a person type field currently.

No feedback
Hello, So I'm back to this question again. Is there a way to do this with web service calls? I was trying to run a get ticket info web call then a get people web call. I am storing the ticket info in the body then calling it from the people call as: from workflow = TicketInfoRespBody.Attributes[?(@.ID==127582].Value. This is failing with the error: The server returned "405 Method Not Allowed".

Response Body:
{"Message":"The requested resource does not support http method 'GET'."}

Any ideas? TIA!!
- Danee Gunka Schwartz Wed 4/12/23 3:14 PM
What is the workflow and in what Ticket app are you attempting this process? - Mark Sayers Wed 4/12/23 3:23 PM