Wednesday, July 19, 2023

Set input parameter as mandatory in logic app

 Hi guys,

                To create customers and vendors, instead of using the 'created record' trigger twice, I have created a new logic app. This logic app will be called from both places with the required inputs. In the child logic app, I have set the input parameters as mandatory.

In the screenshot provided, it shows that the 'Entity name' and 'Body' fields are marked as mandatory.


I have added the necessary code to make the 'Entity name' and 'Body' fields mandatory as highlighted in the screenshot.


After 'properties' I have added the 'required' tag and added the fields.

{
    "properties": {
        "EntityName": {
            "type": "string"
        },
        "body": {
            "properties": {},
            "type": "object"
        }
    },
    "required": [
        "EntityName",
        "body"
    ],
    "type": "object"
}


Keep Daxing!!




Thursday, July 13, 2023

Fin & ops Actions in Logic app.

 Hi guys, Today we can see the Fin & ops Actions in the Logic app.


  • Open the Logic app and open the design.
  • Click on Add action and search Fin& Ops in the search bar.

  • Select Fin & Ops.
  • Below are the Actions available for D365FO


    1. Create Record.

        Way 1:


    Way 2:

            body :
{
    "CustAccount": "Test001",
    "Name": "Test 1",
    "CustomerGroup": "10",
    "TermsOfPayment": "N10",
    "Currency": "USD"
}

     2. Delete Record

  •         This is used to delete the record in D365FO.
  •         Need to select the URL, Entity name, and Object Id.
  •         Object Id (Index of entity) --> Company, CustomerID

    3. Execute action

  •             We can select the executed action based on our requirements.

    4. Get a Record

  •             By using this will get the record from D365FO.
  •             In Object Id, we need to pass the index of the entity.


          Object Id :

    Company,CustAccount --> Index of Entity

    5. Get List of entities

  •         Get all the entities details.


    6. Lists Items present in table

  •          By using this will get the record from D365FO.
  •  Single Field

  •         Multiple fields

        Expression:
length(body('Lists_items_present_in_table')?['value'])

    7. Update Record

        Way 1:

    


        Way 2:


            Object Id :

    Company,CustAccount --> Index of Entity



 Keep Daxing!!





Wednesday, July 12, 2023

How To Register An App In Azure Active Directory For multiple machines of Dynamics 365FO

 Hi guys,

Today, we have registered a single app in Azure to be used across multiple development machines.

In the previous stage, I had registered an app for each machine. However, based on the concern raised by one of our Azure developers, I have to create only one app for all non-production machines. To implement this, I followed the below steps:


Step 1:

Step 2:    

    1.  Search app registration in the search bar.
             

            2. click on the new registration

Step 3:

1.      Provide a Name for your App.

2.     Select Any Azure AD directory – Multitenant)

3.     Click on the Register button.

4. Save the client id and tenant Id

Step 4 :

1.     Select the Certificates & secrets.

2.     Click on New client secret.

Step 5 :

1.     Provide a Description.

2.  Choose Expires value.

3.     Click on Add.

4. Save the Secret value.

Step 6 :

1.     Click on API permissions.

2.     Click on Add a permission.

Step 7 :

1.      You can see the list of all available APIs.

2.      Select Dynamics ERP API.

Step 8 :

1.      Select the Delegate permissions and scroll down.

Step 9 :

1.      Select 3 (AX, custom service, Odata) as per the below screenshot.

Step 10 :

1.      Scroll up and select the Application permissions.

2.      Select the connector.

3.      Click on Add permission.

Step 11 :

1.      Select the Grant admin consent.

2.      We don’t have access that’s why it is disabled in the below screenshot.

Step 12 :

1.      Click on Manifest.

2.      Update allowPublicClient to true and oauth2AllowImplicitFlow to true.

Step 13 :

1.      Click on Save.

Step 14 :

1.      Go to Overview and click on Add a Redirect URL.

Step 15 :

1.      click on Add a Platform.

Step 16 :

1.      Select the Web.

Step 17 :

1.      Provide the URL(Dev 01)

2.      Click on Configure.

Step 18 :

1.      Redirect URIs configured successfully.

Step 19 :

1.      Make sure the below 2 options will be as per the below screenshot.

        

Step 20:

                1. We can add multiple dev machine URLs using Add a Platform or Add URI.



Keep Daxing!!