Skip to main content Rejoignez-nous lors de l'événement TDX à San Francisco ou sur Salesforce+ les 5 et 6 mars pour la conférence des développeurs à l'ère des agents IA. Inscrivez-vous dès maintenant.

Fil

Échangez avec d’autres Trailblazers. Posez des questions et proposez des réponses pour développer vos compétences et votre réseau.

Hi,  

 

I have written a apex class , in which I need to schedule that class every 5 minute.  

I tried executing below Approaches : 

 

Option 2: This executing every 5 mins per hour

global with sharing class ScheduleBatchApexDemo implements Schedulable {global void execute(SchedulableContext sc) { PricingEventReviewAggregatorContract.createPricingLogItemsContract();}Public static void SchedulerMethod() { string timeinterval = '0 5 * * * ?'; System.schedule('ScheduledDemo-Every5mins',timeinterval, new ScheduleBatchApexDemo()); }}

Please help if there is any optimized approach 

@* Salesforce Developers *

Option 1 : Executed code in anonymous window. But I dont want to have n number of scheduled Jobs. System.schedule('Schedule Job Name 1',  '0 00 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 2',  '0 05 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 3',  '0 10 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 4',  '0 15 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 5',  '0 20 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 6',  '0 25 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 7',  '0 30 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 8',  '0 35 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 9',  '0 40 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 10', '0 45 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 11', '0 50 * * * ?', new ScheduleBatchApexClassExample());System.schedule('Schedule Job Name 12', '0 55 * * * ?', new ScheduleBatchApexClassExample());
3 réponses
  1. Aujourd’hui, à 11:19

    Try scheduling the apex class 5 minutes from the time it finishes every time it finishes. You will only have a schedule (5 minutes from now) for this class.

0/9000
In order for a user to see Files tab as well as File uploads to Notes and Attachment section - it appears the Enable Chatter permission must be enabled. 

Does anyone know a work around?
2 réponses
  1. Aujourd’hui, à 11:17

    Hi John, 

    A little late I imagine but just save other peoples time. 

    I have run into this problem also, one of the many crazy head melts that you encounter when working with salesforce. I couldn't find any real workaround unfortunately. 

    I far as I am aware if you disable chatter (this option is added via a case with sf) for a user they lose access to files, notes and attachments. Bizarrely enough when a user is denied access to a file in this scenario they can't view it in the pop up but are allowed to download it!  

0/9000

Hi All, I'm trying to upgrade managed package in salesforce through App Exchange in sandbox but it's auto redirecting to production org. Please help to tackle this. 

 

Link for managed package :

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EHAmyUAH&other_source=AppExchange+Browse

 

 

#Salesforce Developer  #Trailhead Challenges

2 réponses
0/9000
NAVEED ZIAI (Packages Limited) a posé une question dans #Security

Hi Community,  

I'm searching for the "Program" object in the Object Mager but am unable to find it.  Is there any requirement if an Object is not found the create a custom Object or Install the New Package Package for it?  

 

#Security  #Trailhead Challenges  #Certifications  #TrailblazerCommunity

7 réponses
0/9000

 

Background - We are noticing that there are many sellers who has exact same first name and last name e.g. there are two "John Davidson" & it is causing for seller to see incorrect forecast info.  

 

To solve the same, we are thinking to use a concat field of "Name"-"Employee ID" ( e.g. John David-A2346UK) 

and want to update in the dashboard such that when John David opens dashboard , he does not need to manually select his name+Employee id but it gets default selected when he opens the dashboard. 

 

What should we write in json for the same when we have two different fields in 'User' object as 'Name' and 'EmployeeId' 

 

 

 

Dashboard json query.jpg

 

 

 

 

 

 

2 réponses
0/9000

商談の「主キャンペーンソース」に条件が当てはまったらキャンペーンを登録するようフローを組んでいるのですが、該当のキャンペーンのキャンペーンメンバーにどういうロジックでリード・取引先責任者が登録されているのかが分かりません。 

 

フローを組んだ商談の「取引先責任者の役割」に登録されている取引先責任者が登録されるのは分かるのですが、該当の商談以外のリードや取引先責任者もキャンペーンメンバーに登録されています。 

 

他のフローや、他の何かの自動化の機能が動いている可能性があるのでしょうか、、?

1 réponse
0/9000

Working on this module "Import and Export with Data Management Tools" and encounter such error message " Step not yet complete in Trailhead Playground,

The 'Lead' records from the CSV were not found. Please check the instructions."

 

I've checked Today Created Lead list view, only 36 records available but on the csv file we have 44 records, 8 are missing, may I know how to fix this?

 

THANKS!

30 réponses
  1. 23 juin 2021, 13:15

    Thanks Adityan and Biren! I've found the solution - I added extra column on the csv file with the title "Lead" (Not ''Lead Source" because it will not let you passed) and insert "Web" for the 44 records, upsert the data then map the "Lead" with ''Lead Source" in Data Import Wizard - it works!

0/9000

I am working service agent using RAG capabilities and uploaded a document which has troubleshooting steps of around 13 steps. 

 

When I ask a question for troubleshooting guide/steps, service agent is only returning 6 steps even after updating the instruction it is same. 

 

Is there any limit with the length of the response? Please clarify 

 

#Agentforce  #Prompt Builder

1 réponse
  1. Aujourd’hui, à 11:02

    Hi @Gopala Atla

     

    Yes, there is a limit on the length of the response in Agentforce. The issue you are experiencing, where only a portion of the troubleshooting steps are returned, could be due to the model's maximum context length being exceeded.  

    This is a common problem when the combined prompt exceeds the model's token limit, which can result in incomplete responses. 

    For more details, you can refer to the following articles: 

    https://help.salesforce.com/s/articleView?id=002723590&type=1

     

    https://help.salesforce.com/s/articleView?id=ai.prompt_builder_limits.htm&type=5

     

    https://help.salesforce.com/s/articleView?id=ai.copilot_setup_system_messages.htm&type=5

     

     

    Thanks! 

     

0/9000