• Philip Stennett
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,
I am writing a custom action in Visualforce. Unfortunately it can't look quite the same as the built in actions because of the padding put around the iframe, however,  I would like it to behave as much like the built in ones as possible. The one piece of this that I can't seem to figure out is getting the action to collapse after it has completed. Has anyone had any luck with this?

Cheers,
Phil
I have a custom VisualForce page on my community through which a user can post a reply to a question, however when someone replies the notification emails are not triggered to the people who are following the question.

If I post an answer from the internal questions page it does send the email, so I know that the settings are at least partially correct!

Thanks.
I'm having trouble with the tests for deployment of chatter messaging (private messages) in the visualforce community that I'm building. The tests all work in sandbox no problem but when I try and deploy to production I get the following incredibly vague error with no line numbers or anything:

Validation Errors While Saving Record(s)
Stack Trace: null

Below is a completely cut down version of a method that causes the issue. The user creation code is used elsewhere in other tests and doesn't cause difficulties and as far as I can tell all chatter permissions are enabled on the profile (it is a custom user profile which many of our employees use). I have also tried sending the message as myself instead of creating a user for that and encounter the same issue.

@isTest(SeeAllData=true)
static void testConversationCreation() {
		
    	Profile	profile = [Select Id FROM Profile WHERE Name = 'General Users'];
    			
	User sender = new User(Alias = 'unittest', Email='test@unittesting.com', 
            EmailEncodingKey='UTF-8', LanguageLocaleKey='en_US',
            LocaleSidKey='en_US', ProfileId = profile.Id,
            Title = 'Tester', FirstName = 'Test', LastName = 'Sender',
            TimeZoneSidKey='America/Los_Angeles', UserName='test@unittestingsender.com');
        insert sender;    
        
        User recipient = new User(Alias = 'unittest', Email='test@unittesting.com', 
            EmailEncodingKey='UTF-8', LanguageLocaleKey='en_US',
            LocaleSidKey='en_US', ProfileId = profile.Id,
            Title = 'Tester', FirstName = 'Test', LastName = 'Recipient',
            TimeZoneSidKey='America/Los_Angeles', UserName='test@unittestingrecipient.com');
        insert recipient;
        
        System.runAs(sender) {
        	ConnectApi.ChatterMessage message = ConnectApi.ChatterMessages.sendMessage('test', recipient.Id);
        	
        	System.assertNotEquals(null, message);
        }
}


Hi,
I am writing a custom action in Visualforce. Unfortunately it can't look quite the same as the built in actions because of the padding put around the iframe, however,  I would like it to behave as much like the built in ones as possible. The one piece of this that I can't seem to figure out is getting the action to collapse after it has completed. Has anyone had any luck with this?

Cheers,
Phil