Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Issue with "..data.." in Trello script?

So, I've got the script up and running, however when I add in the ..data.. variable into the Trello link the Text from TypeIdea.Text doesn't post to the Trello, only the Players name does. The Trello Key and Token have been removed for security as they are private keys.

name = script.Parent.Parent.Parent.Parent.Name
data = script.Parent.Parent.IdeaGUI.TypeIdea.Text

function Post()
	game:service'HttpService':PostAsync("https://api.trello.com/1/cards?key=KEY&token=TOKEN&name="..name.."&desc="..data.."&idList=LISTID",game.HttpService:JSONEncode({"true"}))
end

script.Parent.MouseButton1Down:connect(Post)

1 answer

Use ..game:service'HttpService':UrlEncode(data).. instead of ..data.. this will replace spaces and things with % so it can be used in a url bar basically. If that's not the only cause of the problem, copy paste the error it gives you.

1 comment

0

The problem is with the script recognizing the Text value, the Trello already accepts the PostAsync request. Yet it posts only a card named correctly, not the correct card description which should be the value of Text.

This discussion is preserved as it was. New answers, comments, and votes are closed.