I’m designing a form that I would like to embed on a page in SharePoint, rather than provide a link to it. But to embed a form in NAC, you have to give form access to “anyone with the form URL.” Obviously this is primarily intended for public forms where you don’t have any user data unless you explicitly ask for it on the form. I’m trying to avoid having to ask for any user data because the form will be for internal use only, accessed only by authenticated users.
I was trying to rig up a way to go and grab the user data from the NAC instance, something like this:
- On the form, use the newGuidAsString function to generate a unique identifier.
- Use that unique identifier to Set instance name in the workflow.
- Somehow find that single instance in NAC and grab the user data from it.
I thought maybe the Get workflow instances function would do the trick, but you can’t set conditions in it (such as “when NAC instance name = unique identifier”) and it doesn’t seem to capture user data anyway.
I’m guessing there’s not really a way to do this and I’m just gonna have to bite the bullet and ask for user data in the form. Really, all I need is their email address. (On my authenticated workflows, I always capture user data using Azure AD functionality so that the user doesn’t have to enter any of that info.) And assuming there isn’t a way to do it, can someone explain why authenticated forms can’t be embedded?