• Erin Kuhn
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
I am wanting to add a professional image of the specific chat agent that the chat visitor is chatting with in the chat window. Right now it shows the agent's name, but I want to add their image. How do I accomplish this?ChatWindow
We are sending an outbound message to a third party system to update the status in that system when the lead status in SF is updated. I have created a workflow to send the message any time the status is changed. Once the outbound message is sent, the third party is sending back a response code of HTTP 200 to acknowledge that they received the message, but Salesforce continues to send the same message over and over again. Is there a different response code the third party system should be sending to SF to let SF know not to send the message again?
I have a form on FormAssembly which includes making a payment using PayPal. When PayPal sends the IPN that payment has completed, FormAssembly sends the IPN to a custom URL which is https://atsu.secure.force.com/apply.

In Salesforce, I have an APEX class called IPNHandlerController and it has this in the body:
User-added image
FormAssembly creates an Opportunity record and populates the FormAssembly_ID when the record is created. 

I also have a VisualForce page called IPNHandler. It has the following: 
User-added image

I have created a site and the URL is https://atsu.secure.force.com/apply. The Active Site Home Page is IPNHandler.

To summarize, it should work as follows: 
1. FormAssembly creates the Opportunity record with the FormAssembly_ID
2. FormAssembly sends user to PayPal.
3. User pays on PayPal. PayPal sends IPN to FormAssembly.
4. FormAssembly sends IPN to Salesforce "site" at URL of https://atsu.secure.force.com/apply
4. IPNHandler calls IPNHandlerController which updates the "Paid" field to true

All of this works EXCEPT the PayPal information is not coming through and the Paid field on Opportunity is not being set to true. So basically, FormAssembly is creating the Opportunity record with the FormAssembly_ID, but after they pay, the PayPal IPN message is not updating the Opportunity record to make the Paid field true. Is there something wrong in my APEX code, or something I may be missing? I have checked the permission settings for the guest user and they seem correct. 

 
I have a form on FormAssembly which includes making a payment using PayPal. When PayPal sends the IPN that payment has completed, FormAssembly sends the IPN to a custom URL which is https://atsu.secure.force.com/apply.

In Salesforce, I have an APEX class called IPNHandlerController and it has this in the body:
User-added image
FormAssembly creates an Opportunity record and populates the FormAssembly_ID when the record is created. 

I also have a VisualForce page called IPNHandler. It has the following: 
User-added image

I have created a site and the URL is https://atsu.secure.force.com/apply. The Active Site Home Page is IPNHandler.

To summarize, it should work as follows: 
1. FormAssembly creates the Opportunity record with the FormAssembly_ID
2. FormAssembly sends user to PayPal.
3. User pays on PayPal. PayPal sends IPN to FormAssembly.
4. FormAssembly sends IPN to Salesforce "site" at URL of https://atsu.secure.force.com/apply
4. IPNHandler calls IPNHandlerController which updates the "Paid" field to true

All of this works EXCEPT the PayPal information is not coming through and the Paid field on Opportunity is not being set to true. So basically, FormAssembly is creating the Opportunity record with the FormAssembly_ID, but after they pay, the PayPal IPN message is not updating the Opportunity record to make the Paid field true. Is there something wrong in my APEX code, or something I may be missing? I have checked the permission settings for the guest user and they seem correct. 

 
So I have build a custom chat page that gets the agents photo. When I say built.... I mean borrowed from here https://systemdebug.wordpress.com/2015/05/17/live-agent-rest-api-connectapi/

What I want to do now is also get the agents name. 

The current Apex Class is
 
public without sharing class Chatwindowcontroller {
	
	@RemoteAction
	public static String getPhoto(String userId)
	{
		ConnectApi.Photo p = ConnectApi.ChatterUsers.getPhoto(Network.getNetworkId(), userId);
		return p.smallPhotoUrl;
	}
}

How do I extend this to also get the agents name. When I then have it how do I use it in my Visualforce page?