• jessimcq
  • NEWBIE
  • 15 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 11
    Replies

I know that it is possible to create a FeedItem using Flow (as I have done so!), but is it possible to create an @mention in the body of that FeedItem?

 

I have tried doing @[{!varManagerName}], as well as using just the Id and another number of combinations, but it doesn't seem to want to work :)

 

 

If someone can help me figure it out, I would be ecstatic. This would be an absolutely perfect solution to a process issue we are currently experiencing!

This person was having basically the same issue I'm getting:

http://boards.developerforce.com/t5/General-Development/Error-running-flow-on-Site/m-p/470047#M76773

 

But uh... the 'solution' was that there wasn't actually a problem, so let me take a crack at it.

 

I would like to start by saying that I'm still pretty new to this stuff. I have created a flow that allows users to update custom fields on an Opportunity, defined by the varOpptyId variable I have populated with a test assignment step at the very beginning of the flow. This flow is embedded in a Visualforce page, and works perfectly for users logged into our org.

 

I then set up a Site.com site so that our customers can use the flow as unauthorized users. I set up the permissions so that the guest profile has access to both objects referenced in the flow (Account and Opportunity) and all fields on those objects that are referenced. The user can run the flow just fine up until the record update, at which point we receive this Unhandled process fault:

 

 

Encountered unhandled fault when running process New_Homeowner_Renewal_Flow/301d00000004WEq exception by user/organization: 00Dd0000000dMWk/{4}

 

UPSERT --- UPSERT FAILED ---  ERRORS :  (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) entity type cannot be updated: Opportunity ---  for SFDC record with ID : null,

 

caused by element : Data update.Set_Renewal_in_Progress_0

 

caused by: UPSERT --- UPSERT FAILED ---  ERRORS :  (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) entity type cannot be updated: Opportunity ---  for SFDC record with ID : null,

 

Salesforce Error ID: 1391988153-63159 (1899379434)

 

 


When I take this step out, the user can make it to the end of the flow where there is another record update, at which point the flow fails again but does not throw me any errors to post.

 

I have checked the debug logs and everything says 'success'. Here is the latest one:

 

28.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
18:35:21.029 (29772000)|EXECUTION_STARTED
18:35:21.029 (29820000)|CODE_UNIT_STARTED|[EXTERNAL]|066d0000001xb4h|VF: /apex/Marketplace_Homes_Homeowner_Renewal
18:35:21.177 (177601000)|VF_SERIALIZE_VIEWSTATE_BEGIN|066d0000001xb4h
18:35:21.180 (180135000)|VF_SERIALIZE_VIEWSTATE_END
18:35:22.071 (186742000)|CUMULATIVE_LIMIT_USAGE
18:35:22.071|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 2 out of 100
  Number of query rows: 2 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Number of code statements: 0 out of 200000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

18:35:22.071|CUMULATIVE_LIMIT_USAGE_END

18:35:21.186 (186791000)|CODE_UNIT_FINISHED|VF: /apex/Marketplace_Homes_Homeowner_Renewal
18:35:21.186 (186802000)|EXECUTION_FINISHED

 

This is super important to our business and I am having the worst time trying to figure it out. Any help would be much appreciated. Does anyone have any thoughts?

Thank you in advance!

Hi everyone! We're still plugging away at altering our system to work the way we need it to, and we've run into another snag.

 

On the Opportunity, we need the following to happen:

 

If  sales_commission_paid__c =/= null (date field)

    If it is currently the 16th day of the month

        If solution_specialist_paid_form__c == false

        

Then mark solution_specialist_paid_form__c true

 


From what I'm reading, this may or may not be possible. We need it to happen automatically, rather than after a record is created/edited. We tried a workflow, but as soon as the date is no longer the 16th the box automatically unchecks and we need it to stay locked.

 

It seems like such a simple thing, can anyone help us with a solution?

Thanks in advance!

Hi all! I am attempting to make an Apex trigger to share a record with a user when they are selected on a user search field entitled 'Assign to'. I have looked at every similarly-tagged post and none of them seem to have the answers I need...

 

I found this gem that I attempted to follow to the letter, but unfortunately am still receiving an error. Does anyone know what I'm doing wrong?

http://wiki.developerforce.com/page/Using_Apex_Managed_Sharing_to_Create_Custom_Record_Sharing_Logic

 

 

Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST<SFDC_Support_Tickets__Share> 

 

trigger Assign_To_Sharing on SFDC_Support_Tickets__c (after insert) {

 

if(trigger.isInsert){

 

List<SFDC_Support_Tickets__Share> ticketShares = new List<SFDC_Support_Tickets__Share>();

for(SFDC_Support_Tickets__c ticket : trigger.new){

SFDC_Support_Tickets__c assignToSharing = new SFDC_Support_Tickets__c();
ticketShares.ParentId = ticket.Id;
assignToSharing.UserOrGroupId = ticket.Assign_To__c;
assignToSharing.AccessLevel = 'edit';
assignToSharing.RowCause = Schema.SFDC_Support_Tickets__Share.RowCause.Assign_To_Sharing__c;
ticketShares.add(assignToSharing );
}

Database.SaveResult[] ticketShareInsertResult = Database.insert(ticketShares,false);

}
}

So, I have scoured these forums and several other forums, and while I have found many threads that sort of answer bits and pieces of my plight, I haven't found anything that works the way I need it to yet.

 

I am brand new to Apex, so I am fully expecting the answer to be staring me in the face without my notice. Any help would be immensely appreciated.

 

 

Basically, I have a custom object called Support Tickets (SFDC_Support_Tickets) and I have created a flow for it (Support_Ticket_Creator) that allows users to make one of three record types. In the flow builder, I have set a variable to capture the record's ID for use later in the flow (SupportTicketID) and I have embedded the flow into a Visualforce page (Create_New_Support_Ticket). All I need is for the 'finish' button to take the user to the record that they've just created.

 

 

I have tried every variation of solution that I have found. The main issue that I am running into is that I keep getting an error on the Apex Class telling me that SupportTicketID doesn't exist.

 

Here is the code that I have:

 

VisualForce

<apex:page Controller="Support_Ticket_Creator" tabstyle="SFDC_Support_Tickets__c" >
    <br/>
    <flow:interview name="Support_Ticket_Creator" interview="{!SupportTicketCreator}" finishLocation="{!SupportTicketID}"/>
    <apex:param name="vOpportunityId" value="{!opptyId}"/>
</apex:page>

Apex

public with sharing class Support_Ticket_Creator {

 

     public String SupportTicketCreator { get; set; }

 

     public String getOpptyId() { return getoppId; }

     public ID returnID = getoppId;


     public PageReference getSupportTicketID () {

            if(SupportTicketCreator != null) returnID = Support_Ticket_Creator.SupportTicketID;

            PageReference send = new PageReference('/' + returnID);
            send.setRedirect(true);
            return send;
    }

 

}

 

 

Above is my latest attempt, and the error that I am getting is: 

ErrorError: Compile Error: Variable does not exist: getoppId at line 5 column 41

 

 

So, can anyone help? I am so very stuck and our February release is looming. I appreciate any assistance that anyone can provide!

I know that it is possible to create a FeedItem using Flow (as I have done so!), but is it possible to create an @mention in the body of that FeedItem?

 

I have tried doing @[{!varManagerName}], as well as using just the Id and another number of combinations, but it doesn't seem to want to work :)

 

 

If someone can help me figure it out, I would be ecstatic. This would be an absolutely perfect solution to a process issue we are currently experiencing!

This person was having basically the same issue I'm getting:

http://boards.developerforce.com/t5/General-Development/Error-running-flow-on-Site/m-p/470047#M76773

 

But uh... the 'solution' was that there wasn't actually a problem, so let me take a crack at it.

 

I would like to start by saying that I'm still pretty new to this stuff. I have created a flow that allows users to update custom fields on an Opportunity, defined by the varOpptyId variable I have populated with a test assignment step at the very beginning of the flow. This flow is embedded in a Visualforce page, and works perfectly for users logged into our org.

 

I then set up a Site.com site so that our customers can use the flow as unauthorized users. I set up the permissions so that the guest profile has access to both objects referenced in the flow (Account and Opportunity) and all fields on those objects that are referenced. The user can run the flow just fine up until the record update, at which point we receive this Unhandled process fault:

 

 

Encountered unhandled fault when running process New_Homeowner_Renewal_Flow/301d00000004WEq exception by user/organization: 00Dd0000000dMWk/{4}

 

UPSERT --- UPSERT FAILED ---  ERRORS :  (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) entity type cannot be updated: Opportunity ---  for SFDC record with ID : null,

 

caused by element : Data update.Set_Renewal_in_Progress_0

 

caused by: UPSERT --- UPSERT FAILED ---  ERRORS :  (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) entity type cannot be updated: Opportunity ---  for SFDC record with ID : null,

 

Salesforce Error ID: 1391988153-63159 (1899379434)

 

 


When I take this step out, the user can make it to the end of the flow where there is another record update, at which point the flow fails again but does not throw me any errors to post.

 

I have checked the debug logs and everything says 'success'. Here is the latest one:

 

28.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
18:35:21.029 (29772000)|EXECUTION_STARTED
18:35:21.029 (29820000)|CODE_UNIT_STARTED|[EXTERNAL]|066d0000001xb4h|VF: /apex/Marketplace_Homes_Homeowner_Renewal
18:35:21.177 (177601000)|VF_SERIALIZE_VIEWSTATE_BEGIN|066d0000001xb4h
18:35:21.180 (180135000)|VF_SERIALIZE_VIEWSTATE_END
18:35:22.071 (186742000)|CUMULATIVE_LIMIT_USAGE
18:35:22.071|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 2 out of 100
  Number of query rows: 2 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Number of code statements: 0 out of 200000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

18:35:22.071|CUMULATIVE_LIMIT_USAGE_END

18:35:21.186 (186791000)|CODE_UNIT_FINISHED|VF: /apex/Marketplace_Homes_Homeowner_Renewal
18:35:21.186 (186802000)|EXECUTION_FINISHED

 

This is super important to our business and I am having the worst time trying to figure it out. Any help would be much appreciated. Does anyone have any thoughts?

Thank you in advance!

Hi everyone! We're still plugging away at altering our system to work the way we need it to, and we've run into another snag.

 

On the Opportunity, we need the following to happen:

 

If  sales_commission_paid__c =/= null (date field)

    If it is currently the 16th day of the month

        If solution_specialist_paid_form__c == false

        

Then mark solution_specialist_paid_form__c true

 


From what I'm reading, this may or may not be possible. We need it to happen automatically, rather than after a record is created/edited. We tried a workflow, but as soon as the date is no longer the 16th the box automatically unchecks and we need it to stay locked.

 

It seems like such a simple thing, can anyone help us with a solution?

Thanks in advance!

Hi all! I am attempting to make an Apex trigger to share a record with a user when they are selected on a user search field entitled 'Assign to'. I have looked at every similarly-tagged post and none of them seem to have the answers I need...

 

I found this gem that I attempted to follow to the letter, but unfortunately am still receiving an error. Does anyone know what I'm doing wrong?

http://wiki.developerforce.com/page/Using_Apex_Managed_Sharing_to_Create_Custom_Record_Sharing_Logic

 

 

Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST<SFDC_Support_Tickets__Share> 

 

trigger Assign_To_Sharing on SFDC_Support_Tickets__c (after insert) {

 

if(trigger.isInsert){

 

List<SFDC_Support_Tickets__Share> ticketShares = new List<SFDC_Support_Tickets__Share>();

for(SFDC_Support_Tickets__c ticket : trigger.new){

SFDC_Support_Tickets__c assignToSharing = new SFDC_Support_Tickets__c();
ticketShares.ParentId = ticket.Id;
assignToSharing.UserOrGroupId = ticket.Assign_To__c;
assignToSharing.AccessLevel = 'edit';
assignToSharing.RowCause = Schema.SFDC_Support_Tickets__Share.RowCause.Assign_To_Sharing__c;
ticketShares.add(assignToSharing );
}

Database.SaveResult[] ticketShareInsertResult = Database.insert(ticketShares,false);

}
}

So, I have scoured these forums and several other forums, and while I have found many threads that sort of answer bits and pieces of my plight, I haven't found anything that works the way I need it to yet.

 

I am brand new to Apex, so I am fully expecting the answer to be staring me in the face without my notice. Any help would be immensely appreciated.

 

 

Basically, I have a custom object called Support Tickets (SFDC_Support_Tickets) and I have created a flow for it (Support_Ticket_Creator) that allows users to make one of three record types. In the flow builder, I have set a variable to capture the record's ID for use later in the flow (SupportTicketID) and I have embedded the flow into a Visualforce page (Create_New_Support_Ticket). All I need is for the 'finish' button to take the user to the record that they've just created.

 

 

I have tried every variation of solution that I have found. The main issue that I am running into is that I keep getting an error on the Apex Class telling me that SupportTicketID doesn't exist.

 

Here is the code that I have:

 

VisualForce

<apex:page Controller="Support_Ticket_Creator" tabstyle="SFDC_Support_Tickets__c" >
    <br/>
    <flow:interview name="Support_Ticket_Creator" interview="{!SupportTicketCreator}" finishLocation="{!SupportTicketID}"/>
    <apex:param name="vOpportunityId" value="{!opptyId}"/>
</apex:page>

Apex

public with sharing class Support_Ticket_Creator {

 

     public String SupportTicketCreator { get; set; }

 

     public String getOpptyId() { return getoppId; }

     public ID returnID = getoppId;


     public PageReference getSupportTicketID () {

            if(SupportTicketCreator != null) returnID = Support_Ticket_Creator.SupportTicketID;

            PageReference send = new PageReference('/' + returnID);
            send.setRedirect(true);
            return send;
    }

 

}

 

 

Above is my latest attempt, and the error that I am getting is: 

ErrorError: Compile Error: Variable does not exist: getoppId at line 5 column 41

 

 

So, can anyone help? I am so very stuck and our February release is looming. I appreciate any assistance that anyone can provide!

Has anyone ever created a formula to proper case fields?

 

Thank you,

Steve