Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $A.get("e.force:createRecord")
  2. .setParams({
  3. "entityApiName": sObjectName,
  4. "recordTypeId": result
  5. }).fire();
  6.  
  7. this[NavigationMixin.Navigate]({
  8. type: 'standard__objectPage',
  9. attributes: {
  10. objectApiName: this.type,
  11. actionName: 'new'
  12. }
  13. });
  14.  
  15. this[NavigationMixin.Navigate]({
  16. type: 'standard__objectPage',
  17. attributes: {
  18. objectApiName: this.type,
  19. actionName: 'new'
  20. },
  21. state: {
  22. nooverride: '1'
  23. }
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement