Tag: DoGraphRequest

Graph requests can be launched from Ytria automation.

Their result can be stored in a variable or in a text file.

Tag Attributes

AttributesAttribute ValuesValue Description
URLN/ARequest URL (GET will be used)
UseApp

TRUE / FALSE - Defaults to FALSE (whether to use App session or not, instead of User -- for Elevated/ Role)

N/A
NameN/AOutput var name
FilePathOutput file path (ignored if Name is not empty)N/A

Example Script

<ytriaAutomation Application="sapio365">
	<DoGraphRequest url="https://graph.microsoft.com/v1.0/users/" name="myVar"/> <!-- Dump to var -->
	<echo value="{%myVar%}"/>
	<DoGraphRequest url="https://graph.microsoft.com/v1.0/users/" filepath="C:\dump.txt" useapp="True"/> <!-- Dump to file, using app session -->
</ytriaAutomation>
XML