December 31, 2019
Canvas App in Salesforce
Canvas enables you to easily integrate a third-party application in Salesforce. Canvas is a set of tools and JavaScript APIs that you can use to expose an application as a canvas app. This means you can take your new or existing applications and make them available to your users as part of their Salesforce experience.
Canvas App Previewer
Canvas App Previewer is a development tool that lets you see what your canvas apps will look like before you publish them.
The third-party app that you want to expose as a canvas app can be written in any language. The only requirement is that the app has a secure URL (HTTPS).
apex:canvasApp is the tag to use in Visualforce page.
Canvas App Previewer
Canvas App Previewer is a development tool that lets you see what your canvas apps will look like before you publish them.
The third-party app that you want to expose as a canvas app can be written in any language. The only requirement is that the app has a secure URL (HTTPS).
apex:canvasApp is the tag to use in Visualforce page.
December 30, 2019
There's a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived. Contact your administrator for help
When you face "There's a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived. Contact your administrator for help" issue, check the following
1. Check whether the user's profile have Edit access on this object.
2. Check whether the user have proper sharing rules or OWD is public read write to edit the other users records. If the record is owned by user in higher hierarchy, then the user won't be able to update the record.
3. Set debug log and find whether 1 and 2 and impacted on other objects through triggers.
1. Check whether the user's profile have Edit access on this object.
2. Check whether the user have proper sharing rules or OWD is public read write to edit the other users records. If the record is owned by user in higher hierarchy, then the user won't be able to update the record.
3. Set debug log and find whether 1 and 2 and impacted on other objects through triggers.
December 29, 2019
How to create a API specification and deploy in Anypoint Platform?
1. Go to the Design Center.
2. Click API Specification.
3. Enter Project Name, select Start with API designer and click Create button.
4. Use the below RAML.
5. Select Publish to Exchange.
6. Enter a name and click Publish button.
7. Go to the API Manager.
8. Click "Manage API" and select "Manage API from Exchange".
9. Save Manage API from Exchange
10. Select the Runtime version. Enter unique Proxy application name. Click Deploy.
11. Get the Proxy URL.
12. Add /console and open it.
2. Click API Specification.
3. Enter Project Name, select Start with API designer and click Create button.
4. Use the below RAML.
- #%RAML 1.0
- baseUri: https://anypoint.mulesoft.com/mocking/api/v1/links/d69cd01b-2827-42cc-8e1e-ec2a93c6970c/ #
- title: flights
- /flights:
- get:
- queryParameters:
- destination:
- required: false
- enum:
- - SFO
- - LAX
- - CLE
- responses:
- 200:
- body:
- application/json:
- example:
- [{"ID":1,
- "code":"ER38sd",
- "price":400,
- "departureDate":"2016/03/20",
- "origin":"MUA",
- "destination":"SFO",
- "emptySetats":0,
- "plane": {"type":"Boeing 737", "totalSeats": 150}},
- {"ID":2,
- "code":"ER45if",
- "price":345.99,
- "departureDate":"2016/02/11",
- "origin":"MUA",
- "destination":"LAX",
- "emptySeats": 52,
- "plane":{"type":"Boeing 777", "totalSeats": 300}
- }]
- post:
- displayName: Add the flight
- body:
- application/json:
- example:
- {"ID":1,
- "code":"ER38sd",
- "price":400,
- "departureDate":"2016/03/20",
- "origin":"MUA",
- "destination":"SFO",
- "emptySetats":0,
- "plane": {"type":"Boeing 737", "totalSeats": 150}}
- responses:
- 201:
- body:
- application/json:
- example:
- {"Message":"Flights added {but not really)"}
- /{ID}:
- get:
- responses:
- 200:
- body:
- application/json:
- example:
- {"ID":1,
- "code":"ER38sd",
- "price":400,
- "departureDate":"2016/03/20",
- "origin":"MUA",
- "destination":"SFO",
- "emptySetats":0,
- "plane": {"type":"Boeing 737", "totalSeats": 150}}
5. Select Publish to Exchange.
6. Enter a name and click Publish button.
7. Go to the API Manager.
8. Click "Manage API" and select "Manage API from Exchange".
9. Save Manage API from Exchange
10. Select the Runtime version. Enter unique Proxy application name. Click Deploy.
11. Get the Proxy URL.
12. Add /console and open it.
December 28, 2019
How to connect to MySQL table and transform it to JSON using MuleSoft?
1. Create a simple project as below.
2. Listener Configuration is below
3. Select configuration.
Note:
a. Download MySQL connector - https://dev.mysql.com/downloads/connector/j/.
b. Select Local file and add it.
c. The password is also mule.
4. Transform Configuration.
a. Create a json file with the below.
b. While adding metadata type, use the json file created in above step.
c. Drag and drop to match.
5. Logger Configuration.
6. Run the application.
Output:
Open http://localhost:8081/db in the browser to view the result from the table
3. Select configuration.
Note:
a. Download MySQL connector - https://dev.mysql.com/downloads/connector/j/.
b. Select Local file and add it.
c. The password is also mule.
4. Transform Configuration.
a. Create a json file with the below.
- [
- {
- "ID":1,
- "code1":"test1",
- "code2":"testing1",
- "airlineName":"testing1",
- "toAirport":"testing1",
- "fromAirport":"testing1",
- "takeOffDate":"2011/11/11",
- "price":100,
- "planeType":"testing1",
- "setatsAvailable":10,
- "totalSeats":250
- },
- {
- "ID":2,
- "code1":"test",
- "code2":"testing",
- "airlineName":"testing",
- "toAirport":"testing",
- "fromAirport":"testing",
- "takeOffDate":"2010/10/10",
- "price":100,
- "planeType":"testing",
- "setatsAvailable":10,
- "totalSeats":250
- }
- ]
b. While adding metadata type, use the json file created in above step.
c. Drag and drop to match.
5. Logger Configuration.
6. Run the application.
Output:
Open http://localhost:8081/db in the browser to view the result from the table
Subscribe to:
Posts (Atom)