New answers tagged

0

There is some problem with sfdx force:source:deploy/retrieve when we indicate concrete --apiversion from command line. It's better to change sourceApiVersion in sfdx-project.json file. Example for sfdx-cli 7.114.0 and Flow with Asynchronously path (without any Action): "sourceApiVersion": "51.0" sfdx force:source:retrieve -p force-app\...


0

They are where not related in first place. For some reason what I thought was a relationship was actually a Global Value Set, which displayied a list of the existing Cost Centers. So in order to acomplish this it is needed to create a flow that allows the user to change the object name, and update that list value as well so it will be reflected in the "...


1

Picklist field values can only be referenced in formula functions: ISPICKVAL TEXT CASE You have none of these as you've jumped a step to convert a text value to a number using VALUE(..) You will need VALUE(TEXT({!$Record.Coupon_type__c})) as your inner expression Also, if null is legit, you'll need logic to deal with that as 1 - NULL will cause problems


3

This is a known issue(W-9305713) from salesforce. You need to create a custom compact layout and add the required fields and order product number and make that compact layout for the users. Now you can debug the order line flow with order product number as shown below. Compact Layout: OrderLine flow Debug:


1

A cool tool to use for rollups when OOTB roll-up summaries aren't applicable is Declarative Lookup Rollup Summaries (open source). In addition to working over lookup relationships, it supports expanded summarization operators. For you, the relevant one is concatenation including delimiter configuration. You'll need to be cognizant of the parent field size (...


0

Try Below in flow :- Query on the object userrecordacess object by passing record id and user id to check if the user has edit excess Haseditacess will determine his ability to edit For more information, Refer this link Learn About UserRecordAccess


0

Try Below:- Create a trigger flow on before insert. Whenever an opportunity is created and has contact linked with it Determine all the cases linked with that contact and update it's opportunity field


0

Your log indicates that you are getting 401 in the NAMED_CREDENTIAL_RESPONSE. Is the Named Credential KBNamedCred Authorized? In Salesforce Setup, search for Named Credential and look at KBNamedCred to see what is in the "Authentication Status" field. It should display the email of the authenticator. If it says "Pending" then someone ...


1

In your Update Records Flow element, you are trying to update records where BDR_Targets__c.Id = Task.OwnerId I think it is safe to say that those will never match up, since according to Salesforce documentation < https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_task.htm > the Owner of a Task ...


0

DLRS, magnificent as it was for so many of us, is now a bit redundant with Salesforce's Spring 20 release of Before Update and After Update flow components. In the above situation instead of re-calculating everything every hour, it would be better to use the after-update flow each time the status of an invoice is changed.


1

As mentioned above recordId is case sensitive. Can you try as recordId as variable


0

I am not so sure about Flows. It may be necessary to use an invokable Apex action in conjunction with a Flow. However this is possible with Apex. Look into the CalendarView metadata type. The example code is taken from the example provided by Salesforce on that page. What it does is creates a new CalendarView and assigns it to users within the "Sales ...


0

You can recreate your flow as an auto-launched one and use the scheduled flow only for the scheduling of the flow. This way you can test the logic in the Auto-Launched flow by mocking the scheduled flow conditions and start the flow with code. You can also create another auto-launched flow that is triggered by the schedule to create a logfile externally or ...


1

Automated Process such as Process Builder/ Workflow/ Flows won't get trigger if records are touched by Omni-Channel. In my scenario, cases were getting routing via Omni-Channel to users and when they accepts the case, it doesn't trigger any processes I have built. Workaround is to create a process on AgentWork object to trigger the Flow. When AgentWork ...


0

Kindly refer to this article and this will solve your issue :- https://jenwlee.com/2019/11/06/using-dependent-picklists-in-screen-flows/


0

In the decision check if the status is changed (or Old value!= new value). In the update block make sure you map caseId and status field, status field will be mapped by the custom object's status field.


1

if you are checking this issue in 2022, Partner communities now have access to flows. You can set a flow as an action on the custom Action button, and that will launch the flow, even for partner users.


0

I'm sure this is bad code, but it working for me: //this is dumb and I don't understand why I have to do it //This method will make sure we have as many results as requests @TestVisible static List<List<Results>> matchRequestSize(Integer reqSize, List<Results> resultList){ System.debug('matchRequestSize is running.....'); System....


0

This has been fixed as of the Spring '22 version. Note that if you have an existing Record-triggered flow that was created before Spring '22, you need to resave it using the Spring '22 'API Version' of 54 (or higher) in order to have it trigger this way. (See https://drive.google.com/file/d/178CjjDB5obFdVQnKBTwZQSO64gnFZcz2/view?usp=sharing) Salesforce did ...


0

When we did this I created a formula for each field that used BLANKVALUE to check if the field to be updated was currently blank and, if it is, return the new value, otherwise return the existing values. It means retrieving the record to be updated as well, but you can then just do a record update and reference the formulae, you don't need any decisions or ...


0

flow file uploader is not supported in Lightning out, check the documentation here: https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_screencmp_fileupload.htm&type=5


0

If you only want to capture date/time when case owner is changed from Queue -> User, why not leverage the record identifier prefixes? User records always start with 005 Queues (or Groups) always start with 00G See reference here. #1. START: evalute IsChanged for the OwnerId #2. DECISION: evaluate if previous owner was Queue (Group) and new owner is ...


3

Unfortunatly, Flows don't have yet available the Record__Prior value on the start element. So, for you to accomplish this you need to do this in two separate moments: START: Verify that field2 has been changed DECISION: Verify that {!$Record__Prior.field2} had the prior value that verifies the criteria I just tested this and it's working well for me.


0

For anyone who comes across this and needs help, I ended up taking the contacts that were created and made accounts by using their name, phone, and mailing addresses. From there I did a lookup based on exact matches on name, phone, addresses then linked Account Id the AccountId to the Contact record. Worked great.


1

I had posted the update (that triggered the flow) via Developer Workbench. Its 'Disable Feed Tracking' setting had been set. This caused the flow not to create a Feed Item. Once I had deactivated the setting, updates via Developer Workbench and thus the flow created Feed Items. This also shows that flows inherit the 'Disable Feed Tracking' setting.


0

So, Just understand why. I dont know why but if PhoneNumber class has a constructor without params, it works. public class PhoneNumber { @AuraEnabled public String country{get;set;} @AuraEnabled public String numberX{get;set;} public PhoneNumber(String country, String numberX){ this.country = country; this.numberX = numberX; } public PhoneNumber(){ ...


2

Change the class class ChargentApiInput{ String ObjectId; Decimal Amount; } to: class ChargentApiInput{ String ObjectId; Decimal Amount; ChargentApiInput withObjectId(String val) {this.ObjectId = val; return this;} ChargentApiInput withAmount(Decimal val) { String s = String.valueOf(val.setScale(2)); this.Amount = Decimal.valueOf(s);...


3

It's not an issue with the Flow, but the fact that updating the user's profile picture doesn't run any triggers for User. The same applies to the banner photo. You can quickly test this with apex triggers and debug logs (none will be generated). You'll also note the LastModifiedDate does not change if you just change the photo. In terms of documentation, it'...


0

The Search undefined error in the flow lookup inputs are caused by the lookup fields not being on the sObject's page layouts. In your case, you will need to add that look up field to every single page layout (of the source object) that is assigned to your community user profile. From Salesforce help page: if the lookup field defined in Field API Name isn’t ...


1

You can use the "Compliance BCC Email" feature To enable compliance BCC emails for your organization: From Setup, enter Compliance BCC Email in the Quick Find box, then select Compliance BCC Email. Select the Enable checkbox. Enter your compliance email address. Click Save. Reference Link : Salesforce Help


3

You should be able to query the MetadataComponentDependency API to determine every Flow that a LWC is used in (as well as any other dependencies).


3

Maybe the easiest: Remove the following line from the XML configuration file of your LWC and try to save it to the org: <target>lightning__FlowScreen</target> Salesforce's complain will include references to specific flow versions. Then revert your config.


3

I don't know of a specific limit for the number of flows you can run in a single transaction, but flows are limited by a variety of limitations, such as CPU time out (10/60 seconds), SOQL (100) and DML (150) operations per transaction, elements executed per flow (2000), the global Salesforce transaction timeout (10 minutes), and probably a few others. You ...


0

After so many debug log and analysing I found some solution which is working good for me. In my scenario, when checking for 1 or 2 records changes, its working. But when I checked for more than 10 records the flow is not working properly. By checking the debug log, the recent changes are not committed in the DB. For this purpose, I just added the pause ...


Top 50 recent answers are included