• Nembutal oxycodone
  • NEWBIE
  • 0 Points
  • Member since 2023
  • Nembutal, oxycodone, ketamine, rohypnol,

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 20
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi Salesforce Friends,

I am new to Salesforce. I created my org not to long ago. I'm looking for guidence and Advice on a project I'm working on. I've created a survey with a bunch of questions, and I've also created a custom object with fields related to those questions. I want to create a flow that will trigger as soon as a new survey response is created. The flow will then create a new record in my custom object based on the survey responses. One record type will be selected based on a response.

I'm not sure how to tackle this in the flow canvas. Even though I started the org not to long ago, I've been learning Salesforce for a few weeks. I'm still a beginner :). I'm hoping someone can provide me with some guidance on how to complete this flow. Which Elements should go first, etc.

Thanks, Everyone!

- Jaden M
 
I ran `npm uninstall sfdx-cli --global` and then `npm install @salesforce/cli@latest --global` and still get ` @salesforce/cli/1.82.6 darwin-x64 node-v18.17.11 returned when running `sf -v` . 
Hi Salesforce Friends,

I am new to Salesforce. I created my org not to long ago. I'm looking for guidence and Advice on a project I'm working on. I've created a survey with a bunch of questions, and I've also created a custom object with fields related to those questions. I want to create a flow that will trigger as soon as a new survey response is created. The flow will then create a new record in my custom object based on the survey responses. One record type will be selected based on a response.

I'm not sure how to tackle this in the flow canvas. Even though I started the org not to long ago, I've been learning Salesforce for a few weeks. I'm still a beginner :). I'm hoping someone can provide me with some guidance on how to complete this flow. Which Elements should go first, etc.

Thanks, Everyone!

- Jaden M
 
Hello All
  I have crazy requirement, i have send an outbound message everytime i click on button. Can we achieve it, i am aware that we can keep some checkbox and update it, then do the trigger flow with outbound. But user can click the button multiple times and have to send the outbound message everytime he click on button. Can we achive this with flow ? can anyone throw some light please

Hi All, 

I wanted to know that is it possible that the validation rules are assigned to particular permisssion sets and profiles? if yes than how to verify that which profile and permission set is having that validation rule ?

I have a doozy of a user story, and I'm stuck.  I will try to explain as best as I can. 

Objects in Question:
Account (Standard)  
Project (Custom) - Master Detail relation to Account.  
Project Services (Custom) -  Junction object between Service & Project.  
Service (Custom) - Just a list of services we offer that need to be linked to multiple other records.   
Current Services (Custom) - Junction object between service & account.

Each 'Account' can have multiple 'Projects' (Master Detail).  Each 'Project' can have multiple 'Services' (Junction Object).  Therefore each 'Account' can have multiple 'Services' (Junction Object).  

What I desperately need: When I relate a 'Service' record to a 'Project', through junction object 'Project Services', I need an identical relation to be created between 'Account' and 'Service', on junction object 'Current Services'.  Is this doable though a Flow or a Trigger?

EX:  'Account A' has just become an active client. User goes to create the new record 'Project 1' associated with 'Account A' on the custom 'Project' object.  While creating 'Project 1', user relates 'Service 1' & 'Service 2' to that project through junction object 'Project Services'.  At the same time a new record needs to be created on the junction object 'Current Services' relating that service to 'Account A'. Each 'Service' only need be added to 'Account A' once.

Think of this as a rollup of related 'Services' to the related 'Account' listed on a 'Project' record. End result being 'Account A' will always have a list of current services in a related list.

Help please?  I've been thinking about this for 3 straight days, and my brain hurts.  Feel free to ask clarifying questions if I make absolutely zero sense.

I've never written a trigger, so if that's my path, any advice or help would be much appreciated. 

Need to create Custom Edit button to check whether user is having record access to Read/Write then only it should move existing page otherwise display can't perform this action.
  • August 09, 2023
  • Like
  • 1
I'm using DevOps. When deploying a workitem to Acceptance, I got the following message : 
10:15:45
Stefaan Somers
Rebase of WI-000126 branch from Production branch failed
What Happened
As part of the promotion, we attempted to rebase the work item feature branch from the target stage branch to ensure that promotions to downstream stages are successful. This rebase operation failed.
What can you do about it?
If there are other work items in the source stage, try to promote these first because the failure might be due to a missing dependency.

Problem : 
I cannot publish it into production
When making a new workitem, I don't have the possibility to select those changed files anymore
 
Need to find the references of all email template present in our salesforce Instance from where they are being triggered  (Apex,Flows,process Builders etc)
Getting error while deploying Duplicate role to Production
 | ERROR | [DuplicateRule PersonAccount.TRS_Person_Account_Duplicate_Rule] SortOrder must be in sequential order from 1.
 
We are trying to deploy Duplicate rules from one org to Production but getting error
Deployment tool - Copado
Hello All ..! Can anyone help me or guide me on this -
how to throw a custom error in a flow inside a approval process ?

let me know if possible example if Yes.
Using "sent test and verify merge fields" on any of my email templates, no email arrives for any contact I choose.  I am logged in as system admin.  Deliverability is set to "All Emails" and Enforce email privacy settings is unchecked.  If I choose to send an email preview in the test send, the email is sent to the preview address just fine.  The template is "available".  I am on production.  I've run "test deliverability" which works fine.  What am I missing?

Thank you!
Hi,

I know that email limits for  trigger, apex class or API is set for 5000 per day. What is the Email limits for Flows per day.Can anyone help me this.
can someone help to practice scenario or practicle problems on case management for interview and real time work purpose.

Hi,

We want to take the backup of metadata Or Configurations of  Pardot (Account Engagement) sandbox before we will refresh it from Production.

Is there any way to take the backup of  Pardot Sandbox metatdata or configurations?

Please suggest?


        <template for:each={itemList} for:item="item" for:index="index">
            <lightning-record-edit-form key= {item.id} object-api-name="Email__c">
<lightning-layout-item size="12" small-device-size="6" medium-device-size="4" large-device-size="2"
                        padding="around-small">
              ------------------          <lightning-input-field field-name="Contact.Account.Name" variant="label-stacked" required>
                        </lightning-input-field>
                    </lightning-layout-item>
I dleleted the original question I posted as I had the wrong criteria.

We have a Process Builder that is sending a pre class confirmation email 7 days prior to the class start date. Part of the criteria is that the scheduling Status=Completed so why would emails still be sent when the criteria on the Training Event = Void?

In one example I'm looking at the TE was created on 5/22/23 with a class start date initially of 8/9/23. The start date, while 'In-Discussion' status, was changed around a little but always occuring in early August and ended up being set to 8/5/23. The Scheduling status was then set to Completed on 6/15/23. Then on 7/6/23 the Scheduling Status was changed from Completed to VOID.

So why might the email still have sent 7 days prior to 8.5.23 when the status no longer matched the criteria=Completed when it was changed to Void on 7/6/23?

Does the system check the criteria one last time to make sure everything still matches before sending the email? That's what a Salesforce support agent told me years ago so not sure if that's true today but would seem if was checking on 7/29/23 it would have seen the VOID status no longer matched the criteria Scheduling Status=Completed. And thus the email should not have been sent.

So any ideas at all why the email was sent out ? 
 
Hi All,
 I have created the batch class to create the custom records(fieldusage count object ) for each field of the passing object but gettig error 
can someone help here 
public class FieldUsageBatch implements Database.Batchable<sObject> {
public String objectName;

public FieldUsageBatch(String objName) {
objectName = objName;
}

public Database.QueryLocator start(Database.BatchableContext bc) {
String queryString = 'SELECT ';
Map<String, Schema.SObjectField> fieldMap = Schema.getGlobalDescribe().get(objectName).getDescribe().fields.getMap();
List<String> customFieldNames = new List<String>();
for (String fieldName : fieldMap.keySet()) {
Schema.DescribeFieldResult fieldDescribe = fieldMap.get(fieldName).getDescribe();
if (fieldDescribe.isCustom()) {
customFieldNames.add(fieldName);
}
}
queryString += String.join(customFieldNames, ', ') + ' FROM ' + objectName;

return Database.getQueryLocator(queryString);
}

public void execute(Database.BatchableContext bc, List<sObject> scope) {
Map<String, Integer> fieldUsageMap = new Map<String, Integer>();
String objectFieldName = objectName + '.';

String aggregateQuery = 'SELECT ';
for (String fieldName : fieldUsageMap.keySet()) {
aggregateQuery += fieldName + ', COUNT(Id) countField' + fieldName + ' ';
}
aggregateQuery += 'FROM ' + objectName + ' GROUP BY ';
for (String fieldName : fieldUsageMap.keySet()) {
aggregateQuery += fieldName + ', ';
}
aggregateQuery += 'Id';

List<AggregateResult> results = Database.query(aggregateQuery);
for (AggregateResult result : results) {
for (String fieldName : fieldUsageMap.keySet()) {
Integer count = Integer.valueOf(result.get('countField' + fieldName));
String fieldValue = String.valueOf(result.get(fieldName));
if (fieldValue != null && count > 0) {
if (!fieldUsageMap.containsKey(fieldName)) {
fieldUsageMap.put(fieldName, count);
} else {
fieldUsageMap.put(fieldName, fieldUsageMap.get(fieldName) + count);
}
}
}
}

List<Field_Usage_Count__c> fieldUsageList = new List<Field_Usage_Count__c>();
for (String fieldName : fieldUsageMap.keySet()) {
Field_Usage_Count__c fieldUsage = new Field_Usage_Count__c(
External_Object_ID__c = objectName + '_' + fieldName, // Use an External Id field for upsert
Object_Name__c = objectName,
Field_Name__c = fieldName,
Count__c = fieldUsageMap.get(fieldName)
);
fieldUsageList.add(fieldUsage);
}

if (!fieldUsageList.isEmpty()) {
upsert fieldUsageList External_Object_ID__c; 
}
}

public void finish(Database.BatchableContext bc) {

}
}
Thank you in advance
Hello Developers,

I am trying to get the profile administrator id as accurately as possible. Currently my solution is using this query:
SELECT Id, Profile.Name, CreatedDate
FROM User
WHERE UserType = 'Standard'
AND Profile.PermissionsModifyAllData = true 
AND Profile.PermissionsManageUsers = true 
AND Profile.PermissionsManageProfilesPermissionsets = true
AND IsActive = TRUE
ORDER BY CreatedDate ASC 
LIMIT 1
I would like to know if there are more accurate ways to get the admin profile id from a unique field. Any ideas?

Thanks!
 
Hi 
Similar questions are raised in many threats but the solutions proposed do not fit my case. I have got a simple SOQL: 

Select WorkOrder.Id from TimeSheetEntry where WorkOrder.Id in (Select Id from WorkOrder Where...)

The error is The left operand 'WorkOrder.Id' cannot have more than one level of relationships. 

If I provide hardcoded Orders it works, so the relationship exists and is referred to properly as I understand. How to use the subquery?