Portland, OR
Jonathan Ratliff
[email protected]
Library Svcs. Program Mgr.
Library Services Program Manager
Samaritan Health Services
The flow will be triggered to run when new responses to the selected Microsoft Form are submitted
Note: All MS Forms will appear when connected to an account
This action will pull the form response data from the form that triggered the flow
Two variables are used to store the identifier and a PubMed link that searches for the identifier
Update variables only if user supplied an identifier
if(
equals(length(split(<Identifier>, '/')),),
slice(<Identifier>,
add(nthIndexOf(<Identifier>, '/', 3 ), 1)
),
if(not(isInt(substring(<Identifier>, 0, 1))),
trim(
split(<Identifier>, ':')
[sub(length(split(<Identifier>, ':')), 1)]),
<Identifier>
)
)
(<a
href="https://pubmed.ncbi.nlm.nih.gov/?term=@{variables('ParsedIdentifier')}">Open
in PubMed</a>)
Lookup the user by their email
Use the form response and user data to create a new list item and notify staff
New Article Request from
@{items('Apply_to_each')?['DisplayName']}
<p> @{outputs('Create_item')?['body/Title']} submitted a new request for an article.<br><br> Identifier: @{outputs('Create_item')?['body/Identifier']} @{variables('IdentifierLink')}<br> Citation: @{outputs('Create_item')?['body/ArticleTitle']} </p>
@{outputs('Get_response_details')?['body/responder']}