• Suzanne Shanks
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 6
    Replies
Hi, 

I am trying to call Apex Class from Trigger and getting error 'Method does not exist or incorrect signature'. How should i call constructor in Trigger. 

trigger Accountrigger on Account (before update) {
             if(Trigger.Isupdate && Trigger.IsBefore)
    {  
            for (Account Acc:Trigger.new)
            {
              SenddataRequest();
              }
    }      
}

Below is Apex Class
public class SenddataRequest {

    public class requestWrapper

{-----Code-----    }
        
    public String GetAccounts(Account a)

    { -----Code----      }
    

public SenddataRequest(){
      ----- Code-------------        
}
        
    }

}



 

We're trying to route bot conversations to skill-based queues (the key issue here is "bot"). Here's what we want to do:

The visitor enters a dialog with an Einstein bot (no request type is entered in the pre-chat form) and if they want to transfer to an (human) agent, the bot will transfer to a "general knowledge" queue that will use its own method to choose the next available agent.

But if the visitor chooses a specific option in a menu ("Sales" it is), then the bot will automatically transfer them to a "sales skilled" queue (not the "general knowledge" queue).

Here is a brief description of the flow:

Skill based routing (bot) flow
I suppose we could define a context variable (or entity?) containing the skill, and by default it is "general knowledge". Whenever the visitor requests a transfer, the bot will know which skill-bases queue will transfer.

Any time the visitor clicks the "Sales" menu option, the variable will change to "sales".

How can we achieve this?

Thanks in advance, Bernardo
Hi there :)

i'm currently working on an native Android app for my company and ran into some problems with Salesforce lately.

I hope i can find some help here.

What i want to achieve:
The company has a lot of Accounts in Salesforce with 3 important fields for the app: Name, Business (Workshop or Parts Dealer) and location(latitude, longitude)
I would like to show those Accounts(Workshops/Parts Dealers) as markers on a google map in my Android app based on a radius around the user's current location. So it would be more than sufficient to get the data as JSON or XML(i read about sObjects, which would be nice too)

The app will be freely available on Google Play Store and every user should be able to see all the Workshops/Parts dealers around the world.

The problem i'm facing is that i can't find a way to fetch the data inside my app without authenticating every user with a Salesforce-Login. 
Which API is the best to use in this case?

It would be so awsome if anybody could help me with this problem.

What i tried so far: 
- SalesforceMobileSDK: If i extend SalesForceApplication i always end up with the Salesforce-Login Screen.
It seems that every client has to be authenticated for API-calls to work. I tried using the method "peekUnauthenticatedRestClient", but this method only works on full path URL's(e.g. "https://api.spotify.com/v1/search?q=James%20Brown&type=artist"), which isn't really practically for my Use-case.

- I feel like i read nearly all docs about salesforce api, but can't quite get my head around how to solve this problem, although it seems like to be a pretty common use-case.  

- would a salesforce-apex method which would select all records inside a set radius around the user's location be accessable without authentication?

Thanks for your help in advance!

Roman
All: 

I am trying to do a change set for Lead assignment from one sand box to another. I get the following error, not sure what to make of it. 
1. I ensured the profile does have Read, Edit & View all object permission on leads.
2. I am successfully able to upload the change set to my target sand box org.
3. But get the following error on validation. please sos. (Is it a profile, permission issue or some thing with the actual assignment rule that is not correct).

Error message:
Line 3 Column 21 (Assignee does not have permission to view leads: Assignee ID). Which Line 3 and what column 21 and what does the error mean.

please sos.

vishy
609 284 7018 (vishy.ram@capgemini.com)