Create Java action that returns Long-value gives This value should be smaller than 2147483648
0
My code: import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.systemwideinterfaces.core.IMendixObject; import com.mendix.webui.CustomJavaAction; /** * */ public class GetId extends CustomJavaAction<long> { private IMendixObject obj; public GetId(IContext context, IMendixObject obj) { super(context); this.obj = obj; } @Override public Long executeAction() throws Exception { // BEGIN USER CODE long id = obj.getId().toLong(); return id; // END USER CODE } /** * Returns a string representation of this action */ @Override public String toString() { return "GetId"; } // BEGIN EXTRA CODE // END EXTRA CODE } When executing this, it doesn't work; It displays the following error: "This value should be smaller than 2147483648". It seems that this Long-value that is returned is being converted to an Integer somewhere. I'm calling this method in a microflow, on an object that has the ID 8162774324609030. How can I make my code work?