+ Start a Discussion
Ben DannattBen Dannatt 
Having a nightmare with the above section in the Process Automation module - Confident I've completed things correctly but I keep getting the same message when checking the challenge "The 'Case Escalate on High Priority' Workflow rule was not found. Either it was not created, not associated with Case, or not activated" 

Any help here? I've activated the rule and it all looks good from my side *scratching head* 
Best Answer chosen by Ben Dannatt
Adam OlshanskyAdam Olshansky
Hmm could be some other weirdness going on (domain enabled, namespaced org, another process interfering, etc). Would you be able to recreate it in a new dev org? A little inconvenient but should solve the problem.
Zigi MedrudZigi Medrud 
I do not understand how to fix this. This message came up while I was trying to do a challenge in Trailhead "The 'Account Manager' contact role for 'Washington Industries' could not be found or it is not set to the current user."
Best Answer chosen by Zigi Medrud
Adam OlshanskyAdam Olshansky
I think there are a few parts to completing this challenge
1. Make sure you have the Account Manager contact role created (Can confirm in Setup -> Customize -> Accounts -> Contact Roles on Accounts)
2. Make sure that you add yourself to the Account Team for the Washington Industries account
3. Make sure that you have assigned yourself the Account Manager role

Have you completed all of these steps and are still receiving the error message?
Russel MendozaRussel Mendoza 
Hi team,

I'm working on a flow on a specific field that will only accept 0.00 format of number. Any number from 0-9 is fine as long as the format is a 3 numbers that has a decimal after first number followed by a 2 numbers format (0.00). 

I'm using the code below but it seems like it doesn't work the way I expected it to be:
REGEX(Text({!ACCEL_OPEN_ANGLE}),"\\b\\d{1}[.]\\d{2}$")

Any help is greatly appreciated.




Any help will be appreciated. Thanks.
Best Answer chosen by Russel Mendoza
BALAJI CHBALAJI CH
Did you gave Decimal places in your Field .?

Check below screenshot of an example:
User-added image

And Validation rule would be:
User-added image

Let us know if that works for you..

Best Regards,
BALAJI
 
CarnVanBeckCarnVanBeck 
Hello people,

can someone help me, with the following problem.
I have following code in my Lightning component
<lightning:tabset >
    <aura:iteration items="{!v.Items}" var="item">
        <lightning:tab label="{!item}" onactive="{!c.tabClick}">
            <ui:outputtext value="{!item}" />
        </lightning:tab>
    </aura:iteration>
</lightning:tabset>
The problem is the "onactive" attribute of the lightning:tab, Salesforce says: 
Failed to save undefined: The attribute "onactive" was not found on the COMPONENT markup://lightning:tab: Source

But the sfdc documentation states, that the attribute exists
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_tab.htm?search_text=lightning:tab

Is it, because tabs are still beta or have I done something wrong?

The Lightning inspector shows me this when I save without onactive:
<lightning:tab onfocus="null" onblur="null"

Thanks and Regards

 
Best Answer chosen by CarnVanBeck
CarnVanBeckCarnVanBeck
Ok, it seems, that this is a version issue.
My Org is running on Winter'17 and the onactive attribute is only available in Spring'17
Nitin SharmaNitin Sharma 
this is my code but its not woking. any one can help

global class LeadProcessor implements Database.Batchable<sObject> {
    global Database.QueryLocator start(Database.BatchableContext bc){
          String query= 'SELECT Name, LeadSource from Lead';
        return Database.QueryLocator(query);
    }
    global void execute(Database.BatchableContext bc, List<Lead> scope){
        
        for(Lead l: scope){
            l.LeadSource ='Dreamforce';
           
        }
        update scope;
    }
    global void finish(Database.BatchableContext bc){
        
    }
}
Best Answer chosen by Nitin Sharma
BALAJI CHBALAJI CH
Hi Nitin Sharma,

Your code is perfect apart from one line. Try using database.getQueryLocator instead of Database.QueryLocator.
Please find the revised code.
global class PracticeAP implements Database.Batchable<sObject> {
    
    global Database.QueryLocator start(Database.BatchableContext bc)
    {
        String query= 'SELECT Name, LeadSource from Lead';
        //return Database.QueryLocator(query);
        return Database.getQueryLocator(query); 
    }
    
    global void execute(Database.BatchableContext bc, List<Lead> scope)
    {
        for(Lead l: scope)
        {
            l.LeadSource ='Dreamforce';
            system.debug(l);
        }
        update scope;
    }
    
    global void finish(Database.BatchableContext bc)
    {
        
    }
}
Also find the below link to know the difference between database.getQueryLocator and Database.QueryLocator.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_database.htm

Please let me know if it helps you.

Best Regards,
BALAJI
 
jose luis benito ruizjose luis benito ruiz 
Hi all,

User-added image

There is some kind of problem with this... Seems the filter is on:

User-added image

Thanks in advance

joseluis
Best Answer chosen by jose luis benito ruiz
tom frederiksen 12tom frederiksen 12
I think the problem is the language setting. When I change to US Numeber style "." as decimal and not "," as in europa it work.
Jia Kang WonJia Kang Won 
I want a Apex code to add product from lookup list to my account.
Any idea??
Best Answer chosen by Jia Kang Won
BALAJI CHBALAJI CH
Hi Jia Kang Won,

Since Product__C is a lookup field, you have set Product Id to that lookup field. BEfore that you need to query the required Product.
Try below sample code:
trigger mycustomize on Account (before insert, before update) {
    for(Account acc : Trigger.new) {
        acc.Type = 'Prospect';
        Product2 product = [select id, name from product2 where name= 'GenWatt Diesel 200kW' limit 1];
        acc.Product__c= product.id;
    } 
}

Note: This is just sample code to add Productwith a particular name to Account. The code should be bulkified as per the requirement.

Let us know if that helps you.

Best Regards,
BALAJI
LearnSFDCLearnSFDC 

Hi,

 

    I seem to be missing something here.I am looking at the API for the group object and there is no method to get the Users belonging to that public group.Could anybody please let me know how to go about it.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

This isn't quite as straightforward as it sounds, as groups can contain other groups.

 

Here's an example that recursively extracts all users from the group and subgroups.  It will blow governor limits if the nesting goes too deep:

 

 

    public static Set<id> GetUserIdsFromGroup(Id groupId)
    {
        // store the results in a set so we don't get duplicates
        Set<Id> result=new Set<Id>();
        String userType = Schema.SObjectType.User.getKeyPrefix();
        String groupType = Schema.SObjectType.Group.getKeyPrefix();
        
        // Loop through all group members in a group
        for (GroupMember m : [Select Id, UserOrGroupId From GroupMember Where GroupId = :groupId])
        {
            // If the user or group id is a user
            if (((String)m.UserOrGroupId).startsWith(userType))
            {
                result.add(m.UserOrGroupId);
            }
            // If the user or group id is a group
            // Note: there may be a problem with governor limits if this is called too many times
            else if (((String)m.UserOrGroupId).startsWith(groupType))
            {
                // Call this function again but pass in the group found within this group
                result.addAll(GetUSerIdsFromGroup(m.UserOrGroupId));
            }
        }
        
        return result;  
    }
    

 

 

Daniela RinaldoDaniela Rinaldo 

Hi every one,
I need to create an interface to integrate a serie of Account’ data and Product’s data between Salesforce CRM and one management system.
I would predict 2 bidirectional flow that allow me to align the information from one system to another. For example: I could create a new Account in my management system and replicate a sub set of its data in the Salesforce CRM and viceversa, all in real time.
I think the use of WSs are as indicated.  
Do someone developed such integration? It could give me some useful tip to approach correctly the topic?

Thanks
Daniela
Best Answer chosen by Daniela Rinaldo
SFDC coderSFDC coder
@Daniela Rinaldo: I have implemented an Integration between salesforce and SAP system. For one of our objects named Orders we had bi-directional flow for which we did the following using SOAP API:
1. To send data from SFDC to SAP:
-Import the WSDL received from SAP. This generates apex classes automatically
-Use these auto generated classes to invoke the web services of the external system

2. To send data from SAP to SFDC
- The only task needed here is click Setup- APIs- Enterprise WSDL- right click and save in XML format
-provide this WSDL to SAP team for them to import this in their system.

If this clarifies then please mark it as best answer

Regards,
SFDC Coder
Semira@gmail.comSemira@gmail.com 
Hello, 

I was asked to take a stab at implementing another system with Salesforce which will pull information from Salesforce Opportunity object into their mobile app. Since this is my very first time working with API's, I'm extremely lost on where to start. 

I read bunch of articles and the developer guide to understand the different API's and their use. However, my confusing is on what the first step is, I should be taking.

Problems or task at hand: We are looking at a mobile Timecard application, where users will use the app to login and pull up a Opportunity record (I'm guessing this is just the name of opportunity) and stamp their time to clock in and out of a job. I was provided with their TimeCard SOAP API documentation to take a look at the api's and the library. 

Questions
1. What is the first step should I be doing? (If I'm not wrong, I believe we will also be updating few fields on Opportunity after they have entered their time to clock in or out. If not Oppostunity record, then related object to Opportunity) 
2. What questions should I be asking them (the developer from Timecard app)? 
3. Do I write a webservice, generate Apex WSDL and give it to them? (Assuming data needs to go from Salesforce to their system)
4. I don't have any experience in .NET, do I need to? 
5. Why do I need to look at their API documentation? Are they assuming that I will be writing code on their end? Again, going back what should I be asking them? How does this usually work?
6. What do I do with the WSDL file when they give me their, if they do (steps by steps)? 

As you can tell I have never worked with webservices and api's but I think this is a very good opportunity for me to learn hands on and work with it. Even though it is very short amount of time to soak everything up, I am hoping someone will guide me to the right direction. Also, I do not have any mentor or go to person to ask since I'm the solo Salesforce person working here. SO, I will be needing lots of help. Any guidance will be truly appreciated! 

Thank you. 
Best Answer chosen by Semira@gmail.com
Laxman Vattam 26Laxman Vattam 26
There are multiple ways to handle this depending on exact requirements:
First way: You can download WSDL from Salesfore and provide it to other team (mobile app team). Using WSDL provided, they can directly query required information from Salesforce. Also, they can directly update the data in Salesforce
Second way: You can expose APEX functionality on Salesforce using REST API. Please refer sample code for REST API below:
https://yoursalesforceguide.blogspot.com/2016/12/exposing-apex-functionality-through.html
https://yoursalesforceguide.blogspot.com/2016/12/calling-external-rest-service-from.html
Third way: You can get WSDL provided by other team and convert it to APEX class in Salesforce. You need to tweak the class generated to do the needful

1. What is the first step should I be doing? (If I'm not wrong, I believe we will also be updating few fields on Opportunity after they have entered their time to clock in or out. If not Oppostunity record, then related object to Opportunity) 
See if First Way works for them by directly querying/updating salesforce data
2. What questions should I be asking them (the developer from Timecard app)? 
Understand on how (what fields) they are going to query Salesforce
3. Do I write a webservice, generate Apex WSDL and give it to them? (Assuming data needs to go from Salesforce to their system)
First/Second way should work
4. I don't have any experience in .NET, do I need to? 
No
5. Why do I need to look at their API documentation? Are they assuming that I will be writing code on their end? Again, going back what should I be asking them? How does this usually work?
6. What do I do with the WSDL file when they give me their, if they do (steps by steps)? 
You need to convert to APEX class. If you click on APEX classes, there is an option 'Generate from WSDL' that will consume WSDL and convert to Apex

I hope this above information gave you some idea to get started.