Need help on assigning o365 license from ServiceNow flow

venuvedala
Tera Contributor
{
    "Action Status": {
        "code": 1,
        "message": "Error:  Unknown Error (Process Automation.17308fbf77816110cc985228c81061df; line 5)"
    }
}

Integrated ServiceNow with Azure AD using spoke. I am able to create a user from the flow using create user trigger (RITM) but not  able to assign license. 

venuvedala_1-1688717125413.png

 

5 REPLIES 5

Krister Jay Cus
Tera Contributor

I have the same issue. Did you get the solution for this?

 

Thanks!

Yanal
Giga Guru

did you get to a solution?

mfhaciahmetoglu
Mega Sage

Any solutions to this?

dzalewski
Tera Contributor

Hi, not sure if anyone posted a resolution, but based on your screenshot it looks you're trying to pass the user's ServiceNow sys_id to the action as the user_id, but the action expects to receive the user's Microsoft userPrincipalName (UPN) or GUID. In this case, when calling the Assign User License action and defining the user_id input, you would need to dot walk from the sys_user record to the user's UPN/GUID (or otherwise determine how to pass in the UPN/GUID to the action).