This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var results = Populo.Contacts.Query<ExplicitDataLog>( | |
new Query( | |
new[] | |
{ | |
Op.EqualTo("trackingId", "MyTrackingId"), | |
Op.Exists("data.custom.myValue", true) | |
})); | |
Or: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override HttpResponseMessage Post(NameValueCollection formValues) | |
{ | |
// do something useful with the post | |
formValues["Hidden Field"] = "New Value"; | |
formValues["Transaction Id"] = GetTransactionId(); | |
UpdateFormPost(formValues); | |
// return relevant response to user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Specialized; | |
using System.Net.Http; | |
using Contensis.Framework.Web.Controllers; | |
namespace MyCompanyNamespace | |
{ | |
/// <summary> | |
/// Process the results of a Contensis Form post and create a MS Dynamics CRM record |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CustomNamespace { | |
public class MicrosoftDynamicsCRMController : ContensisFormsApiController | |
{ | |
protected override HttpResponseMessage Post(NameValueCollection formValues) | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public HttpResponseMessage MyAction(FormDataCollection data) | |
{ | |
return CreateResponse("Success message."); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public HttpResponseMessage MyAction(FormDataCollection data) | |
{ | |
return CreateResponse("Success message.", HttpPostResponseAction.Redirect, new HttpRedirectOptions("GET", "www.urltoredirectto.com")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public HttpResponseMessage MyAction(FormDataCollection data) | |
{ | |
return CreateErrorResponse(HttpStatusCode.InternalServerError, "Database is currently offline"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Formatting; | |
using System.Web.Http; | |
using Contensis.Framework.Web.Controllers; | |
namespace MyCompanyNamespace | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiKey = CMS_API.Utilities.Security.Crypto.Encrypt(apiKey, "zengenti.mailchimp.subscription.form.apiKey"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiKey = CMS_API.Utilities.Security.Crypto.Encrypt(apiKey, "zengenti.campaignmonitor.subscription.form.apiKey"); |
NewerOlder