Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow execute request with simple action tag #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomas0087
Copy link

@thomas0087 thomas0087 commented Aug 15, 2016

The Dynamics server we are interacting with has some custom methods that don't conform to the same format as the execute_request method uses. This PR adds the ability to exclude the action name from the request tag.

The specs seem to be failing because psavtest.crm.powerobjects.net doesn't resolve.

@thomas0087 thomas0087 force-pushed the execute-simple-action-tag branch 2 times, most recently from a0b5b91 to 4acfa64 Compare August 15, 2016 04:42
@jheth
Copy link
Contributor

jheth commented Sep 22, 2016

Thanks @thomas0087 . I'll check out the test issue and get back to you. Can you give me some details on the Dynamics server? What version? Is it hosted or on-premise?

@thomas0087
Copy link
Author

Hi @jheth, It's an on-premise hosted server, here are the version details crm version details

@jheth
Copy link
Contributor

jheth commented Nov 5, 2016

@thomas0087 Can you re-base to see if the build issue is resolved?

@@ -302,10 +302,12 @@ def execute_request(action, parameters={})
ns_alias = 'a'
end

action_tag = (include_action ? %Q{<request i:type="#{ns_alias}:#{action}Request" xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:b="http://schemas.microsoft.com/crm/2011/Contracts">} : '<request xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts">')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this a regular if/else, the line length runs off the page.

@thomas0087
Copy link
Author

Hi @jheth, I've split the if statement and the specs are all green after the rebase 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants