Re: Role Based Access - Requesting Access to application
Not really the Environment / App ID that was needed, it was the email address of the requester ...
So, here's what I did to get the email address from the request ...
Step 1: Compose Action (Remove all text before the request text)
substring(triggerOutputs()?['body/body'],indexOf(triggerOutputs()?['body/body'],'You’ve received a request from'), 200)
Step 2: Compose Action (Find the start of the email address)
add(indexOf(outputs('Remove_all_text_before_the_request_text'),'('),1)
Step 3: Compose Action (Find the end of the email address)
indexOf(outputs('Remove_all_text_before_the_request_text'),')')
Step 4: Compose Action (Extract email address)
substring(outputs('Remove_all_text_before_the_request_text'),outputs('Find_the_start_of_the_email_address'),sub(outputs('Find_the_end_of_the_email_address'),outputs('Find_the_start_of_the_email_address')))
Once I had the email address, it was simply a case of sending an automated email to that person with details on what they need to do to obtain access