Hi,
Fairly new to SP and Workflows but was able to create a few basic workflows without any issues.
Trying a new one to trigger when user’s cloudLifecyclestate is inactive and the user is the primary owner of roles. We want to transfer the ownership to the user’s manager which we managed to do using patch requests. We also want to send an email to the manager about the role transfer.
Some users have 5-10 roles assigned to them so had to run it through a loop and we want either all roles to be consolidated and sent to the manager or they can be sent in the loop. In either cases I’m facing error 400 bad request while sending the email. For now I’m just trying to send it to myself but it fails.
What can be done to resolve this? Attaching a few screenshots
In this example I’ve just defined a variable to be able to get the email triggered. I’ve tried different values in the body(loopinput is just an example) from all the steps like get identity, get roles etc but that did not work. Neither did moving the email step inside the loop work.


