使用外部服务首先要注册一个外部Web服务并提交其OpenAPI规范,这定义了服务的操作。命名凭据(Named Credential)用于端点URL和身份验证详细信息。然后,平台开始将操作转换为可调用操作,以便在Flow Builder等Salesforce工具中使用。这使得通过点击(而不是编码)即可连接外部服务。一旦注册,外部服务操作将成为你可以添加到Flo...
1. Error Handling考虑: 当我们在进行整体设计时,我们需要考虑错误处理以及数据恢复的策略。 • Error Handling:当error发生时(异常或者错误的code),调用者管理错误处理。比如页面展示错误信息或者跳转到共用页面等等。 • Recovery:呼叫者接收到成功的response以后才可以将数据commit到数据库。如果失败(连接失败等)有...
命名凭据(Named Credential)用于端点URL和身份验证详细信息。然后,平台开始将操作转换为可调用操作,以便在Flow Builder等Salesforce工具中使用。 这使得通过点击(而不是编码)即可连接外部服务。一旦注册,外部服务操作将成为你可以添加到Flow和其他工具中的构建块。当Flow运行时,它将调用外部服务操作来交换数据。这允许无缝...
命名凭据(Named Credential)用于端点URL和身份验证详细信息。然后,平台开始将操作转换为可调用操作,以便在Flow Builder等Salesforce工具中使用。 这使得通过点击(而不是编码)即可连接外部服务。一旦注册,外部服务操作将成为你可以添加到Flow和其他工具中的构建块。当Flow运行时,它将调用外部服务操作来交换数据。这允许无缝...
3. Error handling and validation: Include logic to check if there are any contacts associated with the account If no contacts are found, an error message should be displayed to the sales rep 4. Finish the Flow: Once the contact has been selected, the wizard should end, and the selection ...
错误处理(Error Handling) 涉及到错误处理时,外部服务仅提供一个基本的映射。如果外部系统的API遇到障碍,通过错误详细信息(Error Details)寻找方法可能会感觉就像在迷宫中徘徊。 节流和速率限制 就像高峰时段的交通一样,Callouts也存在限制,限制同时连接和总花费时间。
2.Error Handling & Recovery 集成就涉及到握手操作以及通过 token或者session等授权信息进行SOQL Query或者数据的DML操作。以国内为例。因为salesforce在国内没有服务器,并且访问很慢,基于SOAP / REST 标准的API都是同步操作,很容易经常碰到超时现象,除此以外,我们还要考虑DML的程序问题或者 validation rule / trigger...
Don’t worry, there’s good news! You can prevent almost every occurrence of this error message by taking certain steps before you deploy your flow. We’re talking about another developer concept: error handling. Error handling is the practice of controlling how errors affect your users...
2.Error Handling & Recovery 集成化就牵涉到挥手实际操作及其根据 token或是session等受权信息内容开展SOQL Query或是数据信息的DML实际操作。以中国为例子。由于salesforce在中国沒有网络服务器,而且浏览比较慢,根据SOAP / REST 规范的API全是同步控制,非常容易常常遇到请求超时状况,除此之外,大家还需要考虑到DML的程...
error handling error handling the api calls return error data that your client application can use to identify and resolve runtime errors. if an error occurs during the invocation of most api calls, then the api provides these types of error handling. for errors resulting from badly formed ...