Advertisement
Guest User

Untitled

a guest
Oct 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. var createBoundActionWithPrimitiveTypeRequest = function(entityId){
  2. return{
  3. getMetadata : function(){
  4. return {
  5. boundParameter: D365WebApiUtil.BoundParameter.Entity,
  6. operationName : actionNames.BoundWithPrimitiveTypes,
  7. operationType : D365WebApiUtil.OperationType.Action,
  8. parameterTypes : {
  9. entity : {
  10. typeName : 'mscrm.contact',
  11. structuralProperty : D365WebApiUtil.StructuralProperty.EntityType
  12. },
  13. Name : {
  14. typeName : 'Edm.String',
  15. structuralProperty : D365WebApiUtil.StructuralProperty.PrimitiveType
  16. },
  17. Age : {
  18. typeName : 'Edm.Int32',
  19. structuralProperty : D365WebApiUtil.StructuralProperty.PrimitiveType
  20. },
  21. IsReady : {
  22. typeName : 'Edm.Boolean',
  23. structuralProperty : D365WebApiUtil.StructuralProperty.PrimitiveType
  24. }
  25. }
  26. }
  27. },
  28. entity : {
  29. id : entityId,
  30. entityType : 'contact'
  31. },
  32. Name : 'Code Bug',
  33. Age : 45,
  34. IsReady : true
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement