• Santosh Reddy 10044
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
list<ProcessInstanceWorkitem> workItems = [SELECT Id,ProcessInstance.TargetObjectId,actorid,createddate,CreatedById
FROM ProcessInstanceWorkitem WHERE actorId = '00537000000GePo' and  
                                       ProcessInstance.Status = 'Pending' and 
                                       (createddate> 2018-01-01T01:00:00Z and createddate< 2018-04-30T01:00:00Z) ]; 

system.debug('what is this'+workItems.size());

list<Approval.ProcessWorkitemRequest> y = new list<Approval.ProcessWorkitemRequest>();
Set<Id>tId = new Set<Id>();

for(ProcessInstanceWorkitem ccc : workItems){
    tId.add(ccc.id);
    
}

list<Id> sdcc = new list<Id>();

for(Id ff : tId){
    
    sdcc.add(ff);
}
for(integer i = 0; i< sdcc.size(); i++){
    Approval.ProcessWorkitemRequest pwr = new Approval.ProcessWorkitemRequest();  

pwr.setAction('Removed');
 pwr.setWorkItemId(sdcc[i]);
    pwr.setNextApproverIds(new Id[] {'00537000000GePo'});
     Approval.process(pwr);

}
Can anyone advise how to create a scrolling news ticker (Something like moving message) in lightning components. Tried with marquee, web tickers, but they  are  not supported in lightning . ?

I have created a new survey in production environment using Survey Force from the app exchange by Salesforce Labs. When the survey is sent with caseid and contactid links from a case using an Email Template built with the Survey Force link within it. The user receives the email and survey link, can access and fill in the answers to the survey, BUT, when they attempt to Submit the answers, this message appears on top of page.

Error: Some error occured while saving response

Does anyone know what is causing this, I've checked multiple threads, enabled headers, permissions are properly set, access and visibility seem to be exactly as stated in install guide. Our org is heavily customized and lots of code but I cannot find the source of the error. Thank you for your help and time.

GabeError Message