Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to show File Type fields in dynamics portal

Posted on by 745

Hi all

I have got a requirements where i need to show file type fields on the Portal

I can't use Notes cause each field has its own usability 

By any means or any way can we make those fields available on portal forms

Thanks 

  • santhoshsk Profile Picture
    santhoshsk 10 on at
    RE: How to show File Type fields in dynamics portal

    how to recieve a file type in flow??

  • Verified answer
    Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: How to show File Type fields in dynamics portal

    Follow below steps:

    1. Create a Power Automate with "HTTPS Request trigger" and apply Create update logic of file to any entity.
    2. Add a Button inside portal page and call created Power Automate using JavaScript and pass your data to this Power Automate

     

    Sample code for calling Power Automate from Portal:

       function PostDatatoPowerAutomate(id) {
                 
            //Build JSON 
            var employeedata= '{ "employee" : [' +
            '{ "employeeid": "' + id +'", "employeename": "' + document.getElementById(name).value + '"} ]}';
     
         
            //build http request string using URL from Power Automate flow
            var req = new XMLHttpRequest();
            var url = "https://<<copy HTTP POST URL from Power Automate here>>";
     
            //send https request to Power Automate
            req.open("POST", url, true);
            req.setRequestHeader('Content-Type', 'application/json');
            req.send(employeedata);
     
            alert("updated");
     
        }
  • Suggested answer
    MMK Profile Picture
    MMK 745 on at
    RE: How to show File Type fields in dynamics portal

    The solution for this until Microsoft allows File Type field is as Below

    Create  HttpRequirest Power Automates for Get Post and Put in Dynamics

    and Create Html webresource to accept and update files and use these powerautomates for interations

    a link for help for PA

    readyxrm.blog/.../

  • MMK Profile Picture
    MMK 745 on at
    RE: How to show File Type fields in dynamics portal

    Thanks Leah Ju,

    but i can't use Notes and sharepoint because there are many file types fields and each file has different meaning and a whole flow in CRM

    based on those fields many dependent fields are working so can't use that

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to show File Type fields in dynamics portal

    Hi Moin,

    Unfortunetly, the field that type is file can’t be added to the portal.

    Currently this field is only available to canvas apps and flows, you just can add the file field to the entity form with power app.

    Column data types in Microsoft Dataverse - Power Apps | Microsoft Docs

    And you mentioned that you don’t want to use Notes, the note is in timeline or attach file section?

    More detailed steps for two ways:CRM HUB: Upload,Download ,Edit, Delete Document , Working with Notes in D365 Portal.

    pastedimage1613553436825v4.png      pastedimage1613553343061v2.png

    Also,you can use SharePoint integration from Portal as well to upload your files check this for more details:

    Manage SharePoint documents on a portal - Power Apps | Microsoft Docs

    pastedimage1613554265647v6.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans