Info |
---|
Steps to install APSD in D365 PowerApps platform |
...
Go to edit the Service Request Canvas app.
When prompted, select
Don't Allow
.Remove all 5 connections and Office365Users
Add all of them back.
Run the App Checker and ensure no errors are reported.
Save and Publish the app.
Anchor | ||||
---|---|---|---|---|
|
Go to the environment that has the master set of data for the SCRAM tasks. Currently, this is QA.
On the left menu, go to
Data
→Tables
, then open the Scram Tasks table.On the top menu, click on
Data
→Export data
. Once the export has been successfully completed, click onDownload exported data
.Unzip the csv file.
Switch to the environment you are deploying to.
On the left menu, go to
Data
→Tables
, then open the Scram Tasks table.On the top menu, click on
Data
→>
beside Get data →Get data from Excel
.Upload the csv file from step 4. If there are any mapping issues, fix them.
Click
Import
. Wait for the process to complete, then verify that the data was imported.
...
Follow the same steps for Importing SCRAM task data using the AP Task table instead.
Flows
Info |
---|
For timesheet notifications, approval and importing all users |
...
Timesheet Approval Notifications
Name: Flow - TimeSheetNotifications
Description: This Power Automate Flow triggers when the “ap_timsheetstatus” field is modified to “Rejected”. The flow sends and an email to the submitter.
...
Flow for
Timesheet Approval – Add to
...
CRSM
Name: Flow - Push Approved Time Entries To CRSM
Description: This Power Automate Flow triggers when the “ap_timsheetstatus” field is modified to “Approved”. The flow uses the “TMAPI” custom connector, specifically the following end points.:
Add a time entry
...
To add a time entry, the flow gets all the rows where the current timesheet is approved from the “Time Entries” table filtered via a FetchXML query to only get the rows where “Added to CRSM” is false and hours are not empty or null. Here’s the query:
Code Block language xml <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="ap_timeentry"> <attribute name="ap_timeentryid" /> <attribute name="ap_timeid" /> <attribute name="createdon" /> <order attribute="ap_timeid" descending="false" /> <filter type="and"> <condition attribute="ap_addedtocrsm" operator="eq" value="0" /> <condition attribute="ap_timesheet" operator="eq" uitype="ap_timesheet" value="{@{triggerOutputs()?['body/ap_timesheetid']}}" /> <condition attribute="ap_employeelogin" operator="eq" value="@{triggerOutputs()?['body/ap_employeelogin']}" /> <condition attribute="ap_timecard" operator="eq" value="@{triggerOutputs()?['body/ap_reportingperiod']}" /> <condition attribute="ap_timeentryhours" operator="not-null" /> </filter> </entity> </fetch>
...
...
Create a time entry record in the CRSM database.
...
...
...
Add hours to time entry
...
This endpoint is used to create a record for adding hours for the time entry that was created in the previous step. Depending upon the “ap_timeentrytype” i.e. “Regular”, “Travel” or “Other”, corresponding action is called.
...
...
At the end of the flow, the flag “Added to CRSM” is set to true in the Time Entries table.
...
...
...
Importing Users and
...
Setting Roles:
Name:Flow – Import Users and Roles
Description: This Power Automate Flow can be manually triggered to import users from an excel Excel file (see screenshot below) into the Dynamics 365 “Users” table in the target environment. The Flow also associates users with their managers as listed in the Excel file and assigns them the roles as per the excel Excel file. This excel Excel file can be stored on the executing user’s OneDrive.
...