• Chris over 9000
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
The documentation at http://developer.chatter7bk.com/docs/atlas.en-us.salesforce1api.meta/salesforce1api/live_agent_creating_records_prechat_API_doCreate.htm gives the example of a contact and http://peterknolle.com/live-agent-pre-chat-api/ gives some really good code examples (again for contacts) but my org is using person accounts almost exclusively. Does it work with person accounts and does anybody know the syntax?
I've looked at several posts and am stumped
  • http://techman97.wordpress.com/2013/10/18/flow-and-finishlocation/
  • http://www.ukprogrammer.co.uk/index.php/redirect-flow-finish-location-to-new-record-detail/
I can't seem to adapt the tips given for my Flow (I'm just getting into APEX, I can read a lot of it but writing it is still very rudimentary) it's called "Test_Flow" and on the last screen I have it coming back with "The case created was {!CaseCreated}" 

I thought I had all the names and variables in the techman97 example sorted out but the result page is /your/page/location?var1=null so it's just defaulting to null instead of getting the CaseCreated variable. 

public class flowController{
// Instanciate the Flow for use by the Controller - linked by VF "interview" attribute
public Flow.Interview.Test_Flow flDemo {get;set;}

// Factor your PageReference as a full GET/SET
public PageReference prFinishLocation {
get {
PageReference prRef = new PageReference('/your/page/location?var1=' + strOutputVariable);
prRef.setRedirect(true);
return prRef;
}
set { prFinishLocation = value; }
}
// Factor your Flow output variable pull as a full GET / SET
public String strOutputVariable {
get {
String strTemp = '';

if(flDemo != null) {
strTemp = string.valueOf(flDemo.getVariableValue('CaseCreated'));
}

return strTemp;
}
set { strOutputVariable = value; }
} 

}


Is there a query that can be used to pull the hierarchy of the data categories? Specifically we're trying to get the ones we are using for Knowledge Articles.
The documentation at http://developer.chatter7bk.com/docs/atlas.en-us.salesforce1api.meta/salesforce1api/live_agent_creating_records_prechat_API_doCreate.htm gives the example of a contact and http://peterknolle.com/live-agent-pre-chat-api/ gives some really good code examples (again for contacts) but my org is using person accounts almost exclusively. Does it work with person accounts and does anybody know the syntax?
I have created a Login flow for users to prevent them from having Concurrent login sessions using below URL:
https://developer.salesforce.com/page/Concurrent-Sessions
I'm able to successfully test it in my Developer edition org with Summer '17. 
But in a sandbox which is having Winter '18 edition, upon logging with only one active session - I'm receiving below message and not able to navigate to anywhere else except logging out :
'Your Flow Finished' 
User-added image

Also, found this known error link but the workaroud didn't help either:
https://success.salesforce.com/issues_view?id=a1p300000008XZ5AAM&title=your-flow-finished-screen-should-not-leave-users-stuck-in-the-flow
 
The documentation at http://developer.chatter7bk.com/docs/atlas.en-us.salesforce1api.meta/salesforce1api/live_agent_creating_records_prechat_API_doCreate.htm gives the example of a contact and http://peterknolle.com/live-agent-pre-chat-api/ gives some really good code examples (again for contacts) but my org is using person accounts almost exclusively. Does it work with person accounts and does anybody know the syntax?

I'm 99% to a page with a decent layout for internal users.  This is probably trivial, but for whatever reason, I can't find it.  We only have one community, and it seems really stupid to force people to choose the community when they are creating an idea.

 

How do I 'hard code' the communityid in the VF page.

 

Here is my code that works, if I search and then select, my one community:

 

<apex:page standardController="idea">

<apex:form >

<apex:pageBlock title="New Idea">

<apex:pageBlockButtons >

<apex:commandButton action="{!save}" value="Save"/>

</apex:pageBlockButtons>

<apex:pageBlockSection title="Idea Details" columns="1">

<apex:inputField style="width:250px" value="{!idea.title}"/>

<apex:inputField required="true" value="{!idea.CommunityId}"/>

<apex:inputField required="true" value="{!idea.category}"/>

<apex:inputField required="true" value="{!idea.Requested_Priority__c}"/> <apex:inputField required="true" style="width:600px" value="{!idea.Business_Case__c}"/>

<apex:inputField required="true" style="width:600px" value="{!idea.body}"/>

</apex:pageBlockSection>

</apex:pageBlock>

</apex:form>

</apex:page>

 

 I've tried various tags, but there should be some way to just say that {!idea.communityid} = <id>

 

Also, I hope the answer isn't that I have to write a controller extension JUST to hard code this value... 

Message Edited by BarryPlum on 12-22-2009 09:37 AM