GetActions
description the getactions method retrieves experience based actions from the personalization engine using the data provided in the context https //developer monetate com/sdks/objects#mdskq it supports both single context and multi context evaluations, depending on the data configured in the context https //developer monetate com/sdks/context layer implementation guide#5fc0y method signature getaction method new public void getactions( context context, string\[] actiontypes, boolean includereports, actionscallback callback ) description retrieves experience based actions from the personalization engine using the data provided in the context object parameters (short) \<font color="#2166ae">parameter\</font> \<font color="#2166ae">description\</font> context contains all context and event data required for evaluation actiontypes a list of action types https //developer monetate com/sdks/events action types#6rta6 to be retrieved supports both single and multiple action types includereports determines whether reporting data should be returned in the response use \<font color="#15803d">true\</font> to include reporting data; use \<font color="#c2410c">false\</font> otherwise callback returns actions data or error example getaction method new personalization getactions( context, new string\[] { "monetate\ action\ omnichanneljson" }, false, new actionscallback() { @override public void onsuccess(string actions) { system out println("actions data " + actions); } @override public void onerror(exception e) { system out println("error occurred " + e getmessage()); } } ); method signature getaction method new public func getactions(context\ contextobj, arractiontypes \[string], includereporting bool ) > future<\[\[string any]], error> description retrieves experience based actions from the personalization engine using the data provided in the context object parameters (short) \<font color="#2166ae">parameter\</font> \<font color="#2166ae">description\</font> context contains all context and event data required for evaluation arractiontypes a list of action types https //developer monetate com/sdks/events action types#6rta6 to be retrieved supports both single and multiple action types includereporting determines whether reporting data should be returned in the response use \<font color="#15803d">true\</font> to include reporting data; use \<font color="#c2410c">false\</font> otherwise future returns actions data or error example getaction method new objpersonalization getactions(context contextobj, arractiontypes \["monetate\ action\ omnichanneljson"], includereporting false) on(success { (actions) in self handleaction(actions actions) }) { err in print(err localizeddescription) } method signature getaction method new async getactions( actiontype string | string\[], context? any, includereporting boolean = true, errorcallback? (result { status "success" | "failed"; error? unknown }) => void ) promise<{ data unknown; errors? unknown }> {} description retrieves experience based actions from the personalization engine using the data provided in the context object parameters (short) \<font color="#2166ae">parameter\</font> \<font color="#2166ae">description\</font> context contains all context and event data required for evaluation arractiontypes a list of action types https //developer monetate com/sdks/events action types#6rta6 to be retrieved supports both single and multiple action types includereporting determines whether reporting data should be returned in the response use \<font color="#15803d">true\</font> to include reporting data; use \<font color="#c2410c">false\</font> otherwise future returns actions data or error example getaction example personalization getactions( \["monetate\ action\ omnichanneljson"], monetatecontext) then((res any) => console log("action === 1 res", res)); method signature getaction method new async getactions( actiontype string | string\[], context? any, includereporting boolean = true, errorcallback? (result { status "success" | "failed"; error? unknown }) => void ) promise<{ data unknown; errors? unknown }> {} description retrieves experience based actions from the personalization engine using the data provided in the context object parameters (short) \<font color="#2166ae">parameter\</font> \<font color="#2166ae">description\</font> context contains all context and event data required for evaluation arractiontypes a list of action types https //developer monetate com/sdks/events action types#6rta6 to be retrieved supports both single and multiple action types includereporting determines whether reporting data should be returned in the response use \<font color="#15803d">true\</font> to include reporting data; use \<font color="#c2410c">false\</font> otherwise future returns actions data or error example getaction example personalization getactions( \["monetate\ action\ omnichanneljson"], monetatecontext) then((res any) => console log("action === 1 res", res));