Technical configuration

05- APP Attachment Setup

Prerequisite

Tenant Id : contoso.onmicrosoft.com (You can find your tenant Id in you D365FO Help Page)

Storage account name: soletechsessattachments

Container Name : soletechsattachmentcontainer

“You can choose any name for storage account and container make sure you have noted and this will be used in Application parameter > Azure Blob storage“

Create storage account

  1. Login to www.portal.azure.com
  2. Click on Storage Account
  1. Click on create
  2. Select required Resource group
  3. Define Storage account name as soletechsessattachments

Click on Review + Create on bottom left corner

  1. Click on create
  2. Wait for Deployment to complete
  3. Click on Go to Resource
  1. Click on Containers no 1
  2. Click on Container no 2

Define name as soletechsattachementcontainer and Public access level as private(no anonymous access)

  1. Define Container name
  2. Created container will be listing on the page
  3. Verify Blob Service delete option should be disabled.
  4. Click on create

Copy the Connection string

  1. Click on Access keys
  2. Click on show keys
  3. Copy the Connection string and Save it in NotedPad

Application paramter

  1. Enable Attachment Feature
  2. Define Attachment path as Attachment

Azure Blob storage

Create a directory in Container

  1. Define connection string
  2. Define storage account
  3. Define container name
  4. Select the enviroment
  1. Click on Storage browser (preview)
  2. Click on Blob container
  3. Click on soletechsattachementcontainer
  4. Click on + Add Directory
    1. Name should be your Tenant Id ex: contoso.onmicrosoft.com
    2. Now Contoso.onmicrosoft.com directory is created
  1. Create UAT Directory in Contoso.onmicrosoft.com (Demo Case this will change for Production and other environment)
    1. In Application Parameter you defined your Environment is UAT in Azure Blob Storage, In that case you have to create UAT folder.
    2. Inside the UAT Directory Create 3 Directories
      1. Attachment
      2. Letter
      3. Payslip

Make sure you have defined correct environment for Azure Blob Storage. If you have Prod, UAT, Test & Dev Environments which using the attachment process you should have Prod, UAT, Test, Dev Directory in contoso.onmicrosoft.com. IF you failed to create this directory Attachment wont work.