You need to sign in to do that
Don't have an account?
Liz Gibbons 16
Automate Customer Community user creation
We have partnered with a new organization and have the potential to have 20000 new customer community users request access over the next 2 months. We have been using self registration, but for this partnership, we don't want to have people duplicating efforts. We have set up a connection where the partner will send us users' data via SFTP and we will use Jitterbit to insert that into Salesforce as Contacts. My problem comes from creating Customer Community Users from those Contacts. You can't create users via workflow and this needs to go live on April 1.
Any thoughts?
Any thoughts?
In your exeute method remove:
1.
scope = [SELECT Id, Name, Email FROM Contact WHERE Account.Name = 'Philadelphia Youth Network'];
Reason: scope is already coming from start method.
Send email outside the loop to bulkify it. Although I would still suggest to keep the batch size 1 initially.
You could try to run the Batch Class
By either running it from Developer Console: https://help.salesforce.com/apex/HTViewSolution?id=000171199&language=en_US
Or by adding a scheduled job. Steps are:
1. Create a Schedule Apex Class calling this Batch
2. Schedule the JOB for this schedule apex class : https://developer.salesforce.com/docs/atlas.en-us.apex_workbook.meta/apex_workbook/apex_scheduling_3.htm
Thanks
Shashikant
All Answers
Let me know if you need help in developing Apex Batch Job.
Thanks
Shashikant
I'm a newbie developer, but I took a stab at it. Feedback would be greatly appreciated!
In your exeute method remove:
1.
scope = [SELECT Id, Name, Email FROM Contact WHERE Account.Name = 'Philadelphia Youth Network'];
Reason: scope is already coming from start method.
Send email outside the loop to bulkify it. Although I would still suggest to keep the batch size 1 initially.
You could try to run the Batch Class
By either running it from Developer Console: https://help.salesforce.com/apex/HTViewSolution?id=000171199&language=en_US
Or by adding a scheduled job. Steps are:
1. Create a Schedule Apex Class calling this Batch
2. Schedule the JOB for this schedule apex class : https://developer.salesforce.com/docs/atlas.en-us.apex_workbook.meta/apex_workbook/apex_scheduling_3.htm
Thanks
Shashikant
Thoughts on what might be causing that?
Thanks,
Liz
So the query will be
Thanks
Shashikant
Lline 29: String userId= Site.createPortalUser(u, pwd);
I get a 'Method not yet implemented: createPortalUser(User, String)' error.
I have changed createPortalUser to createExternalUser(sObject, String) and get the error: '[That operation is only allowed from within an active site]'
Thoughts?
Thanks,
Liz
Thanks so much for all your help, Shashikant!
Thanks
Shashikant