Posts

Showing posts from August, 2022

Portal (Power Pages) WebAPI & forget about clearing cache

Image
Portals WebAPI is another way to execute CRUD actions on Dataverse from Power Pages and is mainly used for customizations. However, t his is not configured by default. How do you set it? Go to Portal Management > Website > Site Settings Create the following new site-setting records per table "Webapi/[table name]/enabled"   where the value is true  "Webapi/[table name]/fields"    where the values are the fields used, separate these by a comma or asterisk * to select all fields. "Webapi/[table name]/disableodatafilter"   where the value is true or false depending on the requirement Webapi/error/innererror"  where value is  true Security The good news is that all restrictions on your transactions depend on what user is signed and which web roles have been assigned because they rely on your Table Permissions configuration. Actions Allowed: GET PATCH PUT DELETE POST For example: function Update ( _id ) { var record = {}; record .[ fieldna