Solution: You need to use flowname-versionNumber in package.xml to retrieve the respective version of a flow.
Output:By default, if you don't mention version number, it will fetch the active version of a flow .
Output:A blog containing Salesforce coding examples in detail.It's a place where you can find solutions to the problems that you may face in your daily salesforce coding. Apex classes,visual force page,we services,Integration,plugins,extensions,Lightning web components,Aura components,Email Messages,Sales cloud,service Cloud,Marketing Cloud. Amazon Affliate Link: https://amzn.to/43zNb70
Solution: You need to use flowname-versionNumber in package.xml to retrieve the respective version of a flow.
Output:By default, if you don't mention version number, it will fetch the active version of a flow .
Output:Solution: use the following query below
SELECT Id, Name FROM PermissionSet WHERE PermissionsQueryAllFiles = TRUE
Output:
Solution: Build salesforce Agent and use Data Library to feed the data .In this example ,the latest release pdf document is given for reference and use agent to answer the queries .
Step 1: Download the required release pdf.
Go to the URL 'https://help.salesforce.com/s/articleView?id=release-notes.salesforce_release_notes.htm&release=254&type=5' and download the respective latest salesforce release pdf document.
Step 2: Upload the pdf file.
Go to setup --> Einstein --> Einstein Data Library
click on 'New Library' button and fill the details and click on save
click on files tab and upload the respective salesforce release pdf document
Step 3: Get the retriever details.
Go to the Einstein Studio and click on retrievers to view all the retrievers
Select the respective data library that you upload and not the api name of the retriever
Construct the prompt template as below
You are an experienced Salesforce Technical Architect and your role is to answer the question by referring to the following files {!$EinsteinSearch:File_Salesforce_Release_Assistant_1Cx_nzw964c34f8.results}
Here is the question asked {!$Input:Query}
"""
Follow the instructions below
Remember to tailor your response to the specific question, focusing on the relevant details
your tone should be friendly and informative.
"""
Note: Use the data library in the template by referring the retriever.
Test the prompt template and do modifications as required to get proper output
Step 5: Create the Agent Action.
Go to setup --> Einstein --> Agentforce Assets and click on Actions tab
click on 'New Agent Action'
Fill the details as shown in above image and click on next
Fill the details as shown in the images below and click on Save
The custom action gets created as shown below
Step 6: Configure the Agent .
Go to setup --> Einstein --> Einstein Generative AI --> Agentforce Studio --> Agentforce Agents and click on 'New Agent'
Fill the details as per the image below and click on next
In the add topics section, unselect existing topics and click on 'Add Draft Topic' button
The 'Salesforce Release Notes' topic gets added
click on 'Next'
Select the 'Salesforce Release Assistant' data library and click on 'Create'.
The agent gets created with the topic
Go to the topic and click on 'This Topic's Actions' and click on 'New' button and then click on 'Add from Asset Library'
Test the agent and activate it.
Solution: Go to Setup --> Object Manager --> Omni UI Card object --> Lightning Record Pages and click on 'Vlocity Card Designer'
click on view as shown below
That's it. The flex card designer is ready now
Output:
Before:
After:
Go to setup --> Service Setup and Clink on Knowledge Setup
The following screen appears
Click on Start
Select the user/people and click on Next
Add data category if needed and click on Next
Click on Finish
The knowledge setup is done successfully.
Note: After you enable Lightning Knowledge, you can’t disable it.
Solution: Go to Setup --> Einstein --> Einstein Generative AI --> Agents and enable the toggle icon of 'Agentforce' as shown in images below
Solution: Go to Setup --> Einstein --> Einstein Setup and enable the toggle icon of 'Turn on Einstein' as shown in images below
Object Type | Object Name | API Name (Extension) | Explanation |
---|---|---|---|
Standard Objects | Account | Account | No suffix |
Custom Objects | Any custom object | Custom_Object__c | End with __c (e.g., Invoice__c). |
Big Objects | LargeDataObject | LargeDataObject__b | End with __b, used for handling large data sets. |
External Objects | External Data Object | External_Object__x | End with __x, used for integrating with external data sources. |
Platform Events | Custom Event | Custom_Event__e | End with __e, used for event-driven architecture. |
Metadata Objects | Custom Metadata Type | Custom_Metadata__mdt | End with __mdt, used for storing metadata configuration. |
Settings Objects/Custom Seetting | Custom Settings | Custom_Setting__c | End with __c, used for custom settings. |
Data Lake Object (DLO) | Data Lake Object | Data_Lake_Object__dlm | End with __dlm |
Data Model Object (DMO) | Data Model Object | Data_Model_Object__dmo | End with __dmo |
Engagement Object | Engament Object | Engagement_Object__e | End with __e |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Test_Prompt</members>
<name>GenAIPromptTemplate</name>
</types>
<version>63.0</version>
</Package>
Output: