• Akanksha Jadhav
  • NEWBIE
  • 5 Points
  • Member since 2017

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

Hello All,
 
I have the requirement where I want to share all Cases and Assets of all related accounts with newly created customer community user.
It should share all cases and assets records of its Parent to GrandParent accounts.
 
I am using AssetShare object, CaseShare object with apex trigger for this solution. Currently, I am facing below error :
FIELD_INTEGRITY_EXCEPTION: field integrity exception: unknown (invalid user or group: 005XXXXXXXXXXXXX).’
 
If someone worked on this same task or error, please reply.

I have imported all the contacts given in the download exel. I even deleted all the previous exsisting contacts and accounts before import.
I made seperate csv files for Accounts, Contacts, Hobbies, Opportunities and ContactHobbies and used Dataloader.io to import.
All was imported without any probelm.
 
After import I tired to check challenge and I am getting some wierd error.
It says,
"Challenge Not yet complete... here's what's wrong: 
Whoops! We found at least one contact with a mailing state that is longer than two characters."

I queried all the contacts but no contact has mailing state longer than characters. (Cause no contact has even a single State, I didnt even map it while importing as it was not required or not important)   

User-added image

Been trying to do this for almost 2 days. Dont't know what this is.
Any input on this matter would be really usefull.
Thanks in advance.
When I try to verify the Subscribe to a Platform Event step I am getting the error:

Challenge Not yet complete... here's what's wrong:
The 'cometd' static resource was not found. Check for typos.

The thing is, I am getting the bear watch notifications.  Any idea as to why this error is occurring?

User-added image
Requirement : I need to query all the opportunity and make a csv file and send it to one peoplesoft server using a webservice call.

I have written the batch apex. 

global class OpportunityBatch implements Database.Batchable<sObject>{

    //global declaration of variable which contains all Opportunity
    String query;
   
    // global method for query
    global Database.querylocator start(Database.BatchableContext BC){   
   
        query='select id,AccountId,Amount,CloseDate from Opportunity';
        return Database.getQueryLocator(query);     
    }
    //which called by scheduler class to start the execution.
    global void execute(Database.BatchableContext BC, List<Opportunity> scope){
      List<Opportunity> oppListToUpdate = new List<Opportunity>();
     
      string header = 'Record Id, AccountId , Amount, Close Date \n';   
      String finalstr = header ;
      for(Opportunity opp : scope){
          string recordString = opp.Id+','+opp.AccountId+','+opp.Amount+','+opp.closeDate+'\n';
          finalstr = finalstr +recordString;              
      }
      Blob csvBlob = Blob.valueOf(finalstr);
          
    }
    global void finish(Database.BatchableContext info){    
    }
}

I have to write a scheduler class . But I am not getting how to use the csvBlob in the webservise call.
The web service call will be in batch class or in scheduler class. 

thanks in advance.

Hi,

 I have created a manage package, in which I am displaying chatter feeds for login user. I want this feeds need to be displayed for only community user not for portal user, so i want to hide the component for portal users. So how can I identify is the loged in user is a community user or portal user.

 

Thanks 

Anu