Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

"Better" Create Custom APIs Tutorials

  • 1.  "Better" Create Custom APIs Tutorials

    SILVER CONTRIBUTOR
    Posted Dec 18, 2020 12:02 PM

    I am using the following link to create a custom API:

    Create and use Custom APIs (Microsoft Dataverse) - Power Apps

    I have the plugin code all ready to go.

    Does anyone know of better custom APIs tutorials on the internet, YouTube, etc?

    I see so many videos on web APIs for Azure or on-premise but very few for custom APIs for Dynamics 365.

    The documentation seems so promising. However once you get into it, the explanations are very close to Captain Obvious without much explanation or example. Take the following for instance directly from the Microsoft docs...

    Binding Type
    BindingType
    Picklist The binding type of the custom API.
    • Value: 0 Label: Global
    • Value: 1 Label: Entity
    • Value: 2 Label: EntityCollection
    Cannot be changed after it is saved.

    What do "Global", "Entity" and "EntityCollection" binding types mean in relation to this custom API? I need examples of this.



    ------------------------------
    Rodrick Hales
    Vertex Aerospace
    Madison
    ------------------------------
    Digital Acceleration Binge Day.  January 28th 2021 | 11:00 AM - 2:00 PM EST


  • 2.  RE: "Better" Create Custom APIs Tutorials

    TOP CONTRIBUTOR
    Posted Dec 21, 2020 02:53 AM
    The binding type is essentially deciding is your custom action linked to a specific entity or can it be used anywhere. 

    If you use Power Automate, look at the "perform a bound action" and "perform an h bound action" - this might help you understand the difference. 

    My colleague also wrote a blog post on custom APIs a while ago which might be of use.





    Digital Acceleration Binge Day.  January 28th 2021 | 11:00 AM - 2:00 PM EST


  • 3.  RE: "Better" Create Custom APIs Tutorials

    TOP CONTRIBUTOR
    Posted Dec 21, 2020 04:22 AM

    Custom APIs were only released to preview a few weeks ago, which is probably why you don't see much content around them yet. They are still in preview so don't use them yet for production apps - if you need to use something in production now then you can use a custom action, which is very similar.

    Because custom APIs are essentially an evolution of custom actions, as  @Matt Beard said you can look at documentation around them for examples of bound vs. unbound.

    While custom actions allowed you to have a global (unbound) action or an action bound to a specific entity, custom APIs also introduced the idea of being bound to an entity collection. In practical terms this means that your API has an implicit InputCollection parameter that is a query that defines the records that the API should be run on. There's some information on this in the Global & Bound APIs section of my blog post Matt mentioned.



    ------------------------------
    Mark Carrington
    Chief Technologist
    Data8
    Chester
    ------------------------------

    Digital Acceleration Binge Day.  January 28th 2021 | 11:00 AM - 2:00 PM EST


  • 4.  RE: "Better" Create Custom APIs Tutorials

    SILVER CONTRIBUTOR
    Posted Dec 23, 2020 09:55 AM
    Edited by Rodrick Hales Dec 23, 2020 09:55 AM

    Thanks for all your responses. I will subscribe you all your causes for more info and examples about this.



    ------------------------------
    Rodrick Hales
    Vertex Aerospace
    Madison
    ------------------------------

    Digital Acceleration Binge Day.  January 28th 2021 | 11:00 AM - 2:00 PM EST


  • 5.  RE: "Better" Create Custom APIs Tutorials

    SILVER CONTRIBUTOR
    Posted 27 days ago

    @Mark Carrington How did you understand the feature was in Preview? Also, did you test this in all sandbox environment then ready to deploy to production and a no go?



    ------------------------------
    Rodrick Hales
    Vertex Aerospace
    Madison
    ------------------------------

    Digital Acceleration Binge Day.  January 28th 2021 | 11:00 AM - 2:00 PM EST


  • 6.  RE: "Better" Create Custom APIs Tutorials

    TOP CONTRIBUTOR
    Posted 27 days ago

    On the documentation page at https://docs.microsoft.com/en-us/powerapps/developer/data-platform/custom-api there is a note at the top:

    "This topic is pre-release documentation and is subject to change"

    There's also information in the release plan at https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave2/data-platform/custom-api which indicates that it is in public preview as of 26th October 2020 but does not currently have a date listed for expected General Availability.

    I tested the functionality in a developer instance but haven't yet deployed it to a production instance.



    ------------------------------
    Mark Carrington
    Chief Technologist
    Data8
    Chester
    ------------------------------

    Digital Acceleration Binge Day.  January 28th 2021 | 11:00 AM - 2:00 PM EST


If you've found this thread useful, dive deeper into User Group community content by role