evento
Campeonato Mundial do Power BI DataViz
14/02, 16 - 31/03, 16
Com 4 chances de participar, você pode ganhar um pacote de conferência e chegar ao LIVE Grand Finale em Las Vegas
Mais informaçõesEste browser já não é suportado.
Atualize para o Microsoft Edge para tirar partido das mais recentes funcionalidades, atualizações de segurança e de suporte técnico.
Business apps in Dynamics 365 Customer Engagement are modular, purpose built apps that provide role-based functionality relevant for a particular area of work. These apps make it easier for users to quickly find things they need to do every day by providing a simple and intuitive interface. For example, the Sales business app provides a simpler, smaller sitemap with only the appropriate set of forms, views, dashboards, and process flows that are relevant for sales people.
System administrators and customizers can provide users access to these business apps using security roles; users can access only those apps that they have permission to.
Nota
Custom business apps in Dynamics 365 Customer Engagement are the same as model-driven apps in Power Apps; both are built on the same underlying platform. More information: What are model-driven apps?
In addition to creating custom business apps using the app designer, you can programmatically create and manage custom business apps in Dynamics 365 Customer Engagement (on-premises).
Importante
You don't have to write code to build custom business apps if you don't need to! The app designer provides a simpler and intuitive experience for building custom business apps without having to write code by providing a tile-based information structure and simplified interface. Check it out here: Design custom business apps by using the app designer
Creating a custom business app involves the following steps:
You must have the System Administrator or System Customizer security role or equivalent permissions to be able to create an app.
You must specify the following properties at a minimum to create an app:
The following Web API request creates a Unified Interface-type of an app:
POST [Organization URI]/api/data/v9.1/appmodules HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"name": "SDKTestApp",
"uniquename":"SDKTestApp",
"webresourceid":"953b9fac-1e5e-e611-80d6-00155ded156f"
}
The response OData-EntityId header contains the Uri of the created app.
HTTP/1.1 204 No Content
OData-Version: 4.0
OData-EntityId: [Organization URI]/api/data/v9.1/appmodules(00aa00aa-bb11-cc22-dd33-44ee44ee44ee)
You can add or remove components in an app such as sitemap, entity, dashboard, business process flows, views, and forms that you want to be included in your business app. For detailed information about components that can be added to a business app, see Add or edit app components in the app designer.
Use the AddAppComponents action or the AddAppComponentsRequest message to add components to your business app. The action requires you to specify the following:
The following Web API request adds a view (savedquery) and a form (systemform) to your app:
POST [Organization URI]/api/data/v9.1/AddAppComponents HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"AppId":"00001111-aaaa-2222-bbbb-3333cccc4444",
"Components":[
{
"savedqueryid":"00000000-0000-0000-00aa-000000666000",
"@odata.type":"Microsoft.Dynamics.CRM.savedquery"
},
{
"formid":"c9e7ec2d-efca-4e4c-b3e3-f63c4bba5e4b",
"@odata.type":"Microsoft.Dynamics.CRM.systemform"
}
]
}
To remove a component from an app, use the RemoveAppComponents action or the RemoveAppComponentsRequest message. This action takes the same set of parameters as the AddAppComponents action.
The following Web API request removes a view (savedquery) from your app:
POST [Organization URI]/api/data/v9.1/RemoveAppComponents HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"AppId":"00001111-aaaa-2222-bbbb-3333cccc4444",
"Components":[
{
"savedqueryid":"00000000-0000-0000-00aa-000000666000",
"@odata.type":"Microsoft.Dynamics.CRM.savedquery"
}
]
}
Validating an app involves checking for any dependencies for the components you have added in your business app to ensure that your app works fine. This is the same as clicking Validate in the app designer. More information: Validate your app
Use the ValidateApp function or the ValidateAppRequest message to validate your app. The following Web API request shows how to validate your business app with ID: 00001111-aaaa-2222-bbbb-3333cccc4444:
GET [Organization URI]/api/data/v9.1/ValidateApp(AppModuleId=00001111-aaaa-2222-bbbb-3333cccc4444)
If there are no validation errors, the response is as follows:
HTTP/1.1 200 OK
OData-Version: 4.0
{
"@odata.context": "[Organization URI]/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.ValidateAppResponse",
"AppValidationResponse": {
"ValidationSuccess": true,
"ValidationIssueList": []
}
}
If there are validation issues in your app, the response displays errors/warnings in the ValidationIssueList collection:
HTTP/1.1 200 OK
OData-Version: 4.0
{
"@odata.context": "[Organization URI]/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.ValidateAppResponse",
"AppValidationResponse": {
"ValidationSuccess": false,
"ValidationIssueList": [
{
"ErrorType": "Error",
"Message": "App does not contain Site Map",
"DisplayName": null,
"ComponentId": "00000000-0000-0000-0000-000000000000",
"ComponentType": 0,
"ComponentSubType": 0,
"ParentEntityId": "00000000-0000-0000-0000-000000000000",
"ParentEntityName": null,
"CRMErrorCode": -2147155684,
"RequiredComponents": []
},
{
"ErrorType": "Warning",
"Message": "Account doesn’t reference a form or view. App users will see all forms and views.",
"DisplayName": null,
"ComponentId": "00000000-0000-0000-0000-000000000000",
"ComponentType": 0,
"ComponentSubType": 0,
"ParentEntityId": "00000000-0000-0000-0000-000000000000",
"ParentEntityName": null,
"CRMErrorCode": -2147155691,
"RequiredComponents": []
}
]
}
}
After you have added required components to your custom business app and validated it, you must publish it to make it available to users.
Use the PublishXml action or the PublishXmlRequest messageto publish your custom business app. The following request shows how to publish your business app with ID: 00001111-aaaa-2222-bbbb-3333cccc4444:
POST [Organization URI]/api/data/v9.1/PublishXml HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"ParameterXml":"<importexportxml><appmodules><appmodule>00001111-aaaa-2222-bbbb-3333cccc4444</appmodule></appmodules></importexportxml>"
}
To provide users access to your apps so that they can access it from their Settings > My Apps area or the Dynamics 365 Customer Engagement (on-premises) home page, you can associate security roles to your business apps. Users assigned to the associated security roles and can see and use your business apps in Customer Engagement.
Use the appmoduleroles_association navigation property of the AppModule Entity entity to associate a business app with a security role. The following request shows how to associate a business app with a security role:
POST [Organization URI]/api/data/v9.1/appmodules(00001111-aaaa-2222-bbbb-3333cccc4444)appmoduleroles_association/$ref HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"@odata.id":"[Organization URI]/api/data/v9.1/roles(<roleId>)"
}
To disassociate a security role from a business app, you use the DELETE request with the same navigation property. For example:
DELETE [Organization URI]/api/data/v9.1/appmodules(00001111-aaaa-2222-bbbb-3333cccc4444)/appmoduleroles_association/$ref?$id=[Organization URI]/api/data/v9.1/roles(<roleId)
This section provides you information about retrieving your apps, updating app properties, retrieving app components, and deleting apps.
To retrieve published apps, use the following request:
GET [Organization URI]/api/data/v9.1/appmodules?$select=name
To retrieve unpublished apps, use the RetrieveUnpublishedMultiple function. For example:
GET [Organization URI]/api/data/v9.1/appmodules/Microsoft.Dynamics.CRM.RetrieveUnpublishedMultiple()?$select=name
To retrieve app components for a business app, use the RetrieveAppComponents function or the RetrieveAppComponentsRequest message. For example:
GET [Organization URI]/api/data/v9.1/RetrieveAppComponents(AppModuleId=00001111-aaaa-2222-bbbb-3333cccc4444)
To retrieve the security roles associated with your business app, use the $expand
system query option with the appmoduleroles_association navigation property. For example, here is the request to retrieve all the security roles associated to a business app with ID: 00001111-aaaa-2222-bbbb-3333cccc4444:
GET [Organization URI]/api/data/v9.1/appmodules(00001111-aaaa-2222-bbbb-3333cccc4444)?$expand=appmoduleroles_association&$select=name,appmoduleroles_association
Use the DELETE request to delete a business app. For example:
DELETE [Organization URI]/api/data/v9.1/appmodules(00001111-aaaa-2222-bbbb-3333cccc4444)
You can use the following client APIs to work with business apps:
evento
Campeonato Mundial do Power BI DataViz
14/02, 16 - 31/03, 16
Com 4 chances de participar, você pode ganhar um pacote de conferência e chegar ao LIVE Grand Finale em Las Vegas
Mais informaçõesFormação
Módulo
Introdução aos aplicativos baseados em modelo no Power Apps - Training
O design do aplicativo baseado em modelo é uma abordagem que se concentra na adição rápida de componentes aos seus aplicativos. Esses componentes incluem painéis, formulários, exibições e gráficos. Com pouco ou nenhum código, você pode criar aplicativos simples ou complexos. Ao contrário do desenvolvimento de aplicativos de tela, em que o designer tem controle total sobre o layout do aplicativo, grande parte do layout em aplicativos baseados em modelo é determinada pelos componentes que você adiciona. Em ou
Certificação
Implemente e estenda aplicativos de finanças e operação no Microsoft Dynamics 365.
Documentação
Personalização do Dynamics 365 Customer Engagement (on-premises)
Nesta visão geral, conheça as ferramentas que lhe permitem personalizar o Customer Engagement (on-premises) ou criar as suas próprias aplicações personalizadas sem escrever qualquer código.
Tipos de relações entre entidades no Dynamics 365 Customer Engagement (on-premises)
Relações entre entidades definem como registos podem estar relacionados entre si na base de dados. Saiba mais sobre a diferença entre os dois principais tipos de relações.