File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from azure .identity import InteractiveBrowserCredential
1414
1515# ---------------- Configuration ----------------
16- base_url = "https://aurorabapenv0f528.crm10.dynamics.com" # <-- change to your environment
16+ if not sys .stdin .isatty ():
17+ print ("Interactive input required for org URL. Run this script in a TTY." )
18+ sys .exit (1 )
19+ entered = input ("Enter Dataverse org URL (e.g. https://yourorg.crm.dynamics.com): " ).strip ()
20+ if not entered :
21+ print ("No URL entered; exiting." )
22+ sys .exit (1 )
23+ base_url = entered .rstrip ('/' )
24+ client = DataverseClient (base_url = base_url , credential = InteractiveBrowserCredential ())
25+
1726CUSTOM_API_UNIQUE_NAME = "new_EchoMessage" # Must be globally unique in the org
1827REQUEST_PARAM_UNIQUE = "new_EchoMessage_Message"
1928RESPONSE_PROP_UNIQUE = "new_EchoMessage_Response"
You can’t perform that action at this time.
0 commit comments