cancel
Showing results for 
Search instead for 
Did you mean: 

Create MX_PERSON API Call - MX_MANAGER Failing

brandonbollin
Active Participant
0 Kudos

Experts,
I'm trying to get MX_PERSON records created via an API call. I have it working, that's the good news. The bad news is that when I try to add a manager to the entry I'm creating, I get a 400 Bad Request with, "Unexpected value for parameter ER_MX_MANAGER", see below screenshot. I'm sending the MSKEY of the entry I want to be this entry's manager.

What am I doing wrong?

hristina_kacheva
Explorer
0 Kudos

Hi,

try adding this as a body of your request (instead only the REFERENCE_ID):

{ OPERATION: "ADD", REASON: "", REFERENCED_ID: 876235 }

Best Regards,

Hristina

hristina_kacheva
Explorer
0 Kudos

Clarification: in the body under "ER_MX_MANAGER"

brandonbollin
Active Participant
0 Kudos

I actually just ended up making a new attribute called WH_TEMP_MANAGER and sending in the MSKEYVALUE of the manager. The application which would utilize this API call won't have the MSKEY of the manager's record anyway. The MSKEYVALUE is our environment's login ID, which the app will know so passing that in makes sense. Then, I just use a script to get the managers MSKEY, populate MX_MANAGER with that value, and wipe out the temp attribute.

Accepted Solutions (0)

Answers (0)